web-pal / chronos-timetracker

Desktop client for JIRA. Track time, upload worklogs without a hassle.
https://chronos.web-pal.com
MIT License
298 stars 66 forks source link

High CPU usage #202

Open slimakovec opened 4 years ago

slimakovec commented 4 years ago

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

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

slimakovec commented 4 years ago

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

Activity_Monitor__All_Processes__and_Chronos

VladimirPal commented 4 years ago

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

VladimirPal commented 4 years ago

Untitled 2

slimakovec commented 4 years ago

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

porn commented 4 years ago

Similar here:

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 commented 4 years ago

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 commented 4 years ago

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

slimakovec commented 4 years ago

@VladimirPal any news on this?

plonerp commented 3 years ago

image

Still same on the latest version

veeramarni commented 3 years ago

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

porn commented 3 years ago

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