Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs: Takes too much CPU, cannot be closed #203

Open
louies0623 opened this issue Sep 9, 2023 · 6 comments
Open

Logs: Takes too much CPU, cannot be closed #203

louies0623 opened this issue Sep 9, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@louies0623
Copy link
Contributor

When opening this app, it cannot be closed. The window's close button does not respond.

@louies0623 louies0623 changed the title Logs: Once this app is opened, it cannot be closed. Logs: Once this opened, it cannot be closed. Sep 9, 2023
@probonopd probonopd added the bug Something isn't working label Sep 10, 2023
@probonopd
Copy link
Member

It seems to take a lot of CPU?

@louies0623
Copy link
Contributor Author

louies0623 commented Sep 11, 2023

After testing, it seems to be the case. It took a few seconds for the response to arrive, and it was very laggy.

@probonopd
Copy link
Member

We need to find a more efficient way to do this.

@probonopd probonopd changed the title Logs: Once this opened, it cannot be closed. Logs: Takes too much CPU, cannot be closed Sep 13, 2023
@Hierosme
Copy link

use sh for call tail inside the mainloop is certainly part of the trouble.
Network Utility.app provide a good exemple of QProcess.

It normaly have no need of a Singleton, if a file is all ready open QFileInfo can be detect..

@louies0623
Copy link
Contributor Author

https://github.com/arsdever/qspdlog
Maybe you can refer to.

@Hierosme
Copy link

Thanks @louies0623 for the share
i just have take a look and that is based on a Proxy Model.

i have a good idea about how to, but i would like finish the Date and Time.app before touch anything.

I promise that my next task ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants