一、打开日志
adb shell touch /data/bootchart/enabled
adb reboot
二、重启后执行
adb shell
cd /data/bootchart/
rm enabled
tar -zcf boochart.tgz *
adb pull boochart .tgz
三、Linux电脑执行安装
sudo apt-get install pybootchartgui librsvg2-bin
四、更改绘制py脚本
sudo vim /usr/lib/python2.7/dist-packages/pybootchartgui/draw.py
五、修改pybootchartgui/draw.py 200与201行代码
// 修改 max(0.00001, max(x for (x,y) in data))
xscale = float(chart_bounds[2]) / max(0.00001, max(x for (x,y) in data))
// 修改max(0.00001, max(y for (x,y) in data))
yscale = float(chart_bounds[3]) / max(0.00001, max(y for (x,y) in data))
六、使用wq!强制保存退出并执行
bootchart ./bootchart.tgz