当前位置:网站首页>App battery historian master
App battery historian master
2022-06-25 20:12:00 【chinrock】
Here is mainly a relatively simple Battery historian The operation of , This script file can only be used in python2 edition ,python3 Can report grammatical errors
1. First download and unzip historian Compressed package file for
battery-historian-master.zip
Github Download address
2. And then use adb Command to start operating the phone
The first is to clear the data of power before the test
adb shell dumpsys batterystats --reset
If more detailed analysis is required
To enable full wakelock reporting (post-KitKat only) :
adb shell dumpsys batterystats --enable full-wake-history
3. Then disconnect USB, Start testing APP Power consumption of , After the test , Get the data of power consumption during the test , And recorded in batterystats.txt
adb shell dumpsys batterystats > batterystats.txt
4. Now you can use historian Script file for , stay battery-historian-master\scripts Execute under directory historian.py
python historian.py batterystats.txt > batterystats.html
5. Generate batterystats.html It can be used in the future Chrome Browser open , Finally, the data analysis page of test power will be printed out 
边栏推荐
- <C>. Figure guessing game
- Applet password input box
- Teach you how to add custom controls to a map
- Now meditation: crash service and performance service help improve application quality
- <C>. tic-tac-toe
- SQL statement select summary
- I Space distributor
- Redis thread level reentrant distributed lock (different unique IDs can be locked cyclically)
- NMS reduction box
- Remember to deploy selenium crawler on the server
猜你喜欢

Use of serialize() and serializearray() methods for form data serialization

2020-11-14-Alexnet

Jsonp non homologous interaction (click trigger)

<C>. function

Redis practice: smart use of data types to achieve 100 million level data statistics

Avoid material "minefields"! Play super high conversion rate

206. reverse linked list (insert, iteration and recursion)

Determine whether it is a web page opened on wechat

Suddenly found that the screen adjustment button can not be used and the brightness can not be adjusted

II Traits (extractors)
随机推荐
Transunet reading notes
Delete the page specified in PDF and merge pdf
Uniapp waterfall flow, applet waterfall flow, very simple, suitable for the whole platform
Arduino ide + esp8266+mqtt subscribe to publish temperature and humidity information
Single chip microcomputer line selection method to store impression (address range) method + Example
RPM package installation command
PAT B1096
String since I can perform performance tuning, I can call an expert directly
Randomly generate 100 non repeating numbers between 1 and 150 and put them in the array
Simple native JS tab bar switching
Profile path and name
I Space distributor
Can the stock account opened through qiniu school be used? Is the fund safe?
打新债网上开户安全吗,需要注意什么
Avoid material "minefields"! Play super high conversion rate
From now on, I will blog my code
SQL statement select summary
Wechat applet swiper simple local picture display appears large blank
Curtain down and departure
Dependency injection in PHP reflection implementation framework