Coder Social home page Coder Social logo

README doesn't exist about battery-historian HOT 8 CLOSED

google avatar google commented on August 24, 2024
README doesn't exist

from battery-historian.

Comments (8)

meteormatt avatar meteormatt commented on August 24, 2024
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.

seato avatar seato commented on August 24, 2024

@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.

meteormatt avatar meteormatt commented on August 24, 2024

@seato Yes. I agree.

from battery-historian.

vbauer avatar vbauer commented on August 24, 2024

👍

from battery-historian.

paulirish avatar paulirish commented on August 24, 2024

Screenshot for the readme:

image

from battery-historian.

MarcusWolschon avatar MarcusWolschon commented on August 24, 2024

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.

paulirish avatar paulirish commented on August 24, 2024

Colt’s Super Unofficial Guide to Getting started with Battery Historian

from battery-historian.

tjohns avatar tjohns commented on August 24, 2024

This was fixed with the Battery Historian 2.0 release at Google I/O.

from battery-historian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.