androidshellunixcpu-usagedumpsys

dumpsys cpuinfo not reporting updated information on LG WATCH R


I'm reading CPU usage details of my app using dumpsys cpuinfo command, however, it seems like its not updating the information. For example, the output is as follow:

CPU usage from 886396ms to 613049ms ago:

Which means that the last update was around 613 seconds ago. That doesn't make sense. It updates these information on the phone in terms of a few seconds.

My watch is connected through usb to my laptop. I'm running the following command.

adb shell dumpsys cpuinfo

What I am doing wrong ?


Solution

  • I don't think you are doing anything wrong.

    This interval isn't surprising to me for two reasons: (1) A watch's CPU load is pretty stable over long intervals of time, potentially quiescent for hours, so long intervals make more sense than short intervals. And (2) battery life is very very important so you want to minimize sampling, say perhaps once every 30 to 60 sec.

    You might be able to force a smaller sampling time but I have to wonder if it's really necessary.