Comments (8)
TO USE: (see also usage() below)
adb shell dumpsys batterystats --enable full-wake-history (post-KitKat only)
adb shell dumpsys batterystats --reset
optionally start monsoon/power monitor logging:
if device/host clocks are not synced, run historian.py -v
cts/tools/utils/monsoon.py --serialno 2294 --hz 1 --samples 100000 \
-timestamp | tee monsoon.out
...let device run a while...
stop monsoon.py
adb bugreport > bugreport.txt
./historian.py -p monsoon.out bugreport.txt
https://github.com/google/battery-historian/blob/master/historian.py
from battery-historian.
@meteormatt I understand that the usage exists in the source code comment and in usage()
. The point of a README lets people have an idea of a library's purpose (not in the source code) and usage examples (this exists in the source) without digging into the source code or library. Don't you agree?
from battery-historian.
@seato Yes. I agree.
from battery-historian.
👍
from battery-historian.
Screenshot for the readme:
from battery-historian.
There is one VERY important information that isn't conveyed to the developer:
What minimum Android version is required for the mentioned
" # adb shell dumpsys batterystats"
Everyone analysing battery performance on phones older then this, shouldn't even have to spend time trying to figure out if this project is actually a usable tool for him/her.
(https://developer.android.com/about/versions/android-5.0.html
aparently it's not supported on Android 4.0.4 and 4.1 so if your phone will never get a 5.0 update, you're out of luck.)
from battery-historian.
Colt’s Super Unofficial Guide to Getting started with Battery Historian
from battery-historian.
This was fixed with the Battery Historian 2.0 release at Google I/O.
from battery-historian.
Related Issues (20)
- File is too large to parse HOT 5
- Could not parse aggregated battery stats: Official image source code creates the same error HOT 3
- Question about item "coulomb charge"
- Bugreport get from Android Q can not parse HOT 3
- The "--" in The README.md is invalid
- Failed to run command "java -jar" closure-compiler HOT 5
- What is 'Video' row, and why is it on 100% of the time HOT 1
- what is long wakelock?
- 1 HOT 1
- Note: Could not parse aggregated battery stats. HOT 3
- strconv.ParseFloat: parsing "p": invalid syntax could not parse aggregated battery stats
- it can be used to ubuntu linux platfrom ?
- won't upload bug report file
- Compilation error HOT 1
- Strange behavior on energy data
- when I execute below command, i get a error as below.Anyone know why? HOT 1
- strconv.ParseInt: parsing "0.0": invalid syntax could not parse aggregated battery stats
- debug google play services possible?
- Photo from Netlink Branding and internet cafe
- Jj
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from battery-historian.