背景
android 上面有很多的方法可以分析开机时间 比如打log,通过log 分析。android 的官网上面提供了下面的两种图形化的方式来分析开机时间,一些异常很明显的拖长整个开机时间的活动
可以很容易就看出来。
问题
android 官网和网上的教程很多都不适用于windows 的平台。会出现各种不同的报错,下面是整理的适用于windows的方式。
一、 bootchart
-
生成bootchart.tgz
adb shell 'touch /data/bootchart/enabled'
adb reboot
# 开机后,pull出相关数据
adb shell 'tar -czf /sdcard/bootchart.tgz /data/bootchart'
adb pull /sdcard/bootchart.tgz .
-
window上面使用工具生成图像