本文主要是介绍20180828 BugReport 查看第一次开机的 odex 事件,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1. BugReport 查看第一次开机的 odex 现象
2. 查看方法
- 新机器或格式化重启的机器,按Power键开机,静止一段时间,至少1小时,越久越好
- 导出BugReport
echo on
adb bugreport > Bugreport.zip
adb bugreport > Bugreport.txt
- 点选 add Metrics 添加
The System log containing dex2oat events does not begin until 18:17:39.
4. 观察 dex2oat 现象
- 电量悬崖式下降 91% 到 54%
- 电池温度高,尤其亮屏下 dex2oat ,可以感受到手机发热
Temperature
Aug 21 2018
15:35:54 - 15:40:17
+12m18s645ms to +16m41s956ms
active duration: 4m 23s 311ms
1 occurencesTemperature | Number of times | Total duration
39.0 °C (102.2 °F) | 1 | 4m 23s 311ms
- CPU 在该期间是无法休眠的
unknown-wakelock-holder,可以想到被持锁了
Wakelock held by at least 1 app
Aug 21 2018
15:23:35 - 16:20:57
0 to +57m21s867ms
active duration: 57m 17s 427ms
3 occurencesFirst wakelock acquired by | Number of times
unknown-wakelock-holder | 1
ActivityManager-Sleep | 1
*walarm*:com.android.internal.policy.impl.PhoneWindowManager.DELAYED_KEYGUARD | 1 Only the first app to acquire the wakelock is shown.
Total wakelock duration is not attributed to only those apps listed.
To enable full wakelock reporting, run:
adb shell dumpsys batterystats --enable full-wake-history
这篇关于20180828 BugReport 查看第一次开机的 odex 事件的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!