如何查看Android应用使用的电量
2015-11-28 21:05
501 查看
http://androidren.com/index.php?qa=326&qa_1=%E5%A6%82%E4%BD%95%E6%9F%A5%E7%9C%8Bandroid%E5%BA%94%E7%94%A8%E4%BD%BF%E7%94%A8%E7%9A%84%E7%94%B5%E9%87%8F
简单的来说就是在电脑终端上输入下面的命令:
https://github.com/google/battery-historian
> adb kill-server
> adb devices
> adb shell dumpsys batterystats --reset
<disconnect and play with app>...<reconnect>
> adb devices
>adb shell dumpsys batterystats > batterystats.txt
> python historian.py batterystats.txt > batterystats.html
详细的信息可以参考下面链接:
http://developer.android.com/tools/performance/batterystats-battery-historian/index.html
https://source.android.com/devices/tech/power/batterystats.html
http://developer.android.com/tools/performance/systrace/index.html
简单的来说就是在电脑终端上输入下面的命令:
https://github.com/google/battery-historian
> adb kill-server
> adb devices
> adb shell dumpsys batterystats --reset
<disconnect and play with app>...<reconnect>
> adb devices
>adb shell dumpsys batterystats > batterystats.txt
> python historian.py batterystats.txt > batterystats.html
详细的信息可以参考下面链接:
http://developer.android.com/tools/performance/batterystats-battery-historian/index.html
https://source.android.com/devices/tech/power/batterystats.html
http://developer.android.com/tools/performance/systrace/index.html
相关文章推荐
- 使用adbWireless软件进行Android无线调试
- Android 系统性能优化
- Android服务和如何使用服务
- Mac环境Android 6.0虚拟机启动黑屏解决办法
- Android相机应用
- Android Studio 怎么查看方法注释
- android:clipChildren妙用:底部的radioGroup中间的button突出
- android115 自定义控件
- [转]用android LinearLayout和RelativeLayout实现精确布局
- android动画
- Android调用系统相机方法及保存照片方式
- Android中listView中用于下载、显示图片
- android的IPC机制
- 手机点击QQ直接跳转
- Android地图开发 安全码生成
- Android Calendar的学习与运用
- 让android定时关机的实现方法
- android Gson的使用
- 再谈ArcGIS Runtime SDK for Android中文标注无法显示的问题
- Android之RxJava(一)