1 Download BH 2.0 Github
https://github.com/google/battery-historian
2 Install Go
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get -u github.com/google/battery-histrizan
3 Move the BH folder to Go Path
/Users/xxxxx/go/src/github.com/google/battery-historian
4 Setup BH & Run
cd /Users/xxxxx/go/src/github.com/google/battery-historian
go run setup.go
go run cmd/battery-historian/battery-historian.go
5 Open link http://localhost:9999/
有疑问加站长微信联系(非本文作者)