初步体验Android L的battery historian

    周末在家,看了一下比较关注的Google I/O视频,其中在Introduction to Project Volta里面有个battery historian的工具,看着比较有意思,用Nexus 5刷了个Android L preview的版本试试。

    使用battery historian步骤:

1、adb shell dumpsys batterystats --enable full-wake-history
2、adb shell dumpsys batterystats --reset
3、adb bugreport |tee bugreport.txt
4、python historian.py -a bugreport.txt | tee battery.html

用Chrome打开battery.html,可以看到:





beautiful!是不是似曾相识的感觉,如果你用过性能分析工具,不然Systrace、Ftrace、Arm Streamline等性能分析工具,那再熟悉不过了。

    图形还是相当的漂亮。一个性能问题当你找不到解决方法的时候,最后用图形表示出来,看来Brendan D. Gregg话影响深远呀!


参考链接:

https://developer.android.com/preview/api-overview.html
http://forum.xda-developers.com/google-nexus-5/help/played-android-l-battery-historian-tool-t2808146

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值