Utilities icon indicating copy to clipboard operation
Utilities copied to clipboard

Logs: Takes too much CPU, cannot be closed

Open louies0623 opened this issue 1 year ago • 6 comments

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

louies0623 avatar Sep 09 '23 01:09 louies0623

It seems to take a lot of CPU?

probonopd avatar Sep 10 '23 19:09 probonopd

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

louies0623 avatar Sep 11 '23 15:09 louies0623

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

probonopd avatar Sep 13 '23 18:09 probonopd

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..

Hierosme avatar Sep 13 '23 21:09 Hierosme

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

louies0623 avatar Sep 19 '23 00:09 louies0623

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 ...

Hierosme avatar Sep 19 '23 12:09 Hierosme