platform:mt6739 android 8.1
battery historian是用go语言开发的一个电池耗电分析工具,Android 5.0以后的版本可以使用它,其官方文档地址,以下是google官方关于Battery Historian的说明:
Battery Historian is a tool to inspect battery related information and events on an Android device running Android 5.0 Lollipop (API level 21) and later, while the device was not plugged in. It allows application developers to visualize system and application level events on a timeline with panning and zooming functionality, easily see various aggregated statistics since the device was last fully charged, and select an application and inspect the metrics that impact battery specific to the chosen application. It also allows an A/B comparison of two bugreports, highlighting differences in key battery related metrics.
linux环境下,安装和执行battery historian的过程(基于windows的待验证):
1. Install Docker
For Linux, you're done! Historian will be available at "port&