- power profiler
- find “System Tracing” in Developer Options in Settings
- choose “long tracings” and add the tile to quick settings
- choose necessary ones in Categories, such as idle, freq, power
- turn on/off tracing between some work, like sleeping
adb shell pull /data/local/traces .
- load it in perfetto and check CPU, device state, system locks in system_erver
- dumpsys
adb shell dumpsys batterystats --reset
adb shell dumpsys batterystats --enable full-wake-history
- do some work, like sleeping
adb shell dumpsys batterystats
outputs to a file- check for “alarm” for wake alarms and “walarm” for non-wake alarms
08-23
08-05
786
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)