clock-app is rather a busy app (analogue clock display)
Bug #1363968 reported by
Colin Ian King
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Clock App |
Fix Released
|
High
|
Kill Animals |
Bug Description
The clock app is using ~35% of the CPU, this is rather busy and will suck power quite badly.
Attached is the output of running health-check on the clock app process:
Major points to consider:
* qmlscene is seeing ~6800+ context switches a second
* clock_gettime() is called more than 100 times a second
* gettimeofday() is called more than 70 times a second
* stat64() is stat'ing /etc/localtime 734 times a second
I know we want an accurate clock, but this is a bit of overkill isn't it?
Heap seems to be growing at around 1.57K/sec, which doesn't look promising
Related branches
lp:~kill-animals/ubuntu-clock-app/1363968-no-animation-secondshand-updates-every-second
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Nekhelesh Ramananthan: Approve
-
Diff: 193 lines (+28/-29)3 files modifiedapp/clock/MainClock.qml (+1/-1)
app/components/AnalogMode.qml (+1/-2)
po/com.ubuntu.clock.pot (+26/-26)
description: | updated |
Changed in ubuntu-clock-app: | |
assignee: | nobody → Akiva (akiva) |
Changed in ubuntu-clock-app: | |
status: | Confirmed → In Progress |
Changed in ubuntu-clock-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
hmm this happens because in the analog clock mode, we need to update the UI every 10 ms to show a super smooth seconds hand movement. In the old clock app (purple background) we circumvented this issue by disabling the seconds hand by default. I am a bit unsure how to proceed. But this is an issue which needs to be tackled.