参考连接
- https://developer.android.com/studio/profile/battery-historian
- https://developer.android.com/topic/performance/power/battery-historian
- https://developer.android.com/s/results/?q=Battery%20Historian
- https://github.com/google/battery-historian
耗电量工具
默认提供的docker需要Google Cloud的支持,默认用不了
docker run -p port_number:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999
从源代码安装
依赖golang https://golang.org/
brew install golang
下载源代码进行编译
git clone https://github.com/google/battery-historian.git
go get -d -u github.com/google/battery-historian/...