chronos-timetracker icon indicating copy to clipboard operation
chronos-timetracker copied to clipboard

High CPU usage

Open slimakovec opened this issue 5 years ago • 11 comments

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 avatar Dec 05 '19 13:12 slimakovec

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

Activity_Monitor__All_Processes__and_Chronos

slimakovec avatar Dec 10 '19 13:12 slimakovec

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

VladimirPal avatar Dec 10 '19 15:12 VladimirPal

Untitled 2

VladimirPal avatar Dec 10 '19 15:12 VladimirPal

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

slimakovec avatar Dec 11 '19 09:12 slimakovec

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

porn avatar Dec 12 '19 13:12 porn

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

slimakovec avatar Dec 12 '19 13:12 slimakovec

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

porn avatar Dec 13 '19 08:12 porn

@VladimirPal any news on this?

slimakovec avatar Feb 24 '20 08:02 slimakovec

image

Still same on the latest version

plonerp avatar Jan 21 '21 15:01 plonerp

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

veeramarni avatar May 13 '21 00:05 veeramarni

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

porn avatar May 13 '21 07:05 porn