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

High CPU usage #202

Open
slimakovec opened this issue Dec 5, 2019 · 11 comments
Open

High CPU usage #202

slimakovec opened this issue Dec 5, 2019 · 11 comments

Comments

@slimakovec
Copy link

Expected Behavior

It's just timer. It shouldn't use more than 0.1% CPU.

Actual Behavior

It usually uses more than 10% CPU. Also the CPU usage builds up in time, I need to restart Chronos every day in order to keep it around 10%. If I don't restart the app often, it can easily use more than 25% CPU.

Steps to Reproduce the Problem

  1. Start Chronos
  2. Start tracking time
  3. Watch the system resources to be eaten up by this app

Specifications

  • Chronos-timetracker version: 4.2.0
  • OS: OSX Sierra 10.12.6

Attached screen is after running the app for half a day
Activity_Monitor__All_Processes__and_New_Issue_·_web-pal_chronos-timetracker

@slimakovec
Copy link
Author

This is after running the app for one day without a restart. I mean... Come on!

Activity_Monitor__All_Processes__and_Chronos

@VladimirPal
Copy link
Member

Agree, It's not normal. what version it is?

@VladimirPal
Copy link
Member

Untitled 2

@slimakovec
Copy link
Author

It's 4.2.0. I will profile the app for you once the usage is high

@porn
Copy link

porn commented Dec 12, 2019

Similar here:

  • Chronos-4.0.0-x86_64.AppImage
  • Ubuntu 18.04.3 LTS
  • 4.15.0-70-generic #79-Ubuntu SMP Tue Nov 12 10:36:11 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

CPU usage is ~1 full core:
image

...though I'd say I can run chronos for the whole week without increasing CPU consumption. That's the reason why I'm kinda afraid to upgrade to 4.2 =)

Also RAM at ~0.3GB? Uh oh...

@slimakovec
Copy link
Author

here is a brief snapshot of Chronos when the cpu usage is between 10% to 13%

It's OSX "Sample", is this format good for you?

Sample of Chronos.txt

@porn
Copy link

porn commented Dec 13, 2019

Okay, I was wrong. Restarting chronos helped a lot :)
Currently at: 1-3% CPU usage.

@slimakovec
Copy link
Author

@VladimirPal any news on this?

@plonerp
Copy link

plonerp commented Jan 21, 2021

image

Still same on the latest version

@veeramarni
Copy link

Is it because of using screenshot-desktop package instead of native Electron screenshot?

@porn
Copy link

porn commented May 13, 2021

the high CPU problem is present even when the screenshots are disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants