当前位置:网站首页>app耗电量测试
app耗电量测试
2022-07-25 07:43:00 【风华绝代一只猫】
主要分为2步骤
1、收集app耗电数据
adb devices #连接手机
adb shell dumpsys batterystats --reset #初始化数据,清空重新统计
adb shell dumpsys batterystats --enable full-wake-history #开始唤醒统计
断开usb数据线测试,链接usb会充电,无法统计正确
adb shell dumpsys batterystats > batterystats.txt #导出为txt

2、导出数据,报表分析
可以通过Battery Historian将batterystats.txt 生成html文件格式
2.1、下载https://github.com/google/battery-historian
2.2、运行python historian.py batterystats.txt > batterystats.html
边栏推荐
- 【Unity入门计划】制作我的第一个小游戏
- Problems in deep learning training and testing: error: the following arguments are required: --dataroot, solution: the configuration method of training files and test files
- Tips - prevent system problems and file loss
- CSDN custom T-shirts are waiting for you to get, and the benefits of new programmer are coming!
- Offline base tile, which can be used for cesium loading
- Configuring WAPI certificate security policy for Huawei wireless devices
- 10 key points and 5 measures for good project management
- 轮询、中断、DMA和通道
- 【ES6】函数的参数、Symbol数据类型、迭代器与生成器
- P1049 [noip2001 popularization group t4] packing problem
猜你喜欢

Analysis of difficulties in diagramscene project

9 best engineering construction project management systems
P1086 [noip2004 popularization group question 2] peanut picking

Cluster chat server: summary of project problems

纳米数据足球数据,足球赛事比分,体育数据api,卡塔尔世界杯

Simulation Implementation of list

Matlab self programming series (1) -- angular distribution function

RPC communication principle and project technology selection
![[unity introduction program] basic concept - preform prefab](/img/c6/aac7bffdf99073978f9b2f8ff15fbb.png)
[unity introduction program] basic concept - preform prefab

【Unity入门计划】基本概念-GameObject&Components
随机推荐
Room database migration
Robot Framework移动端自动化测试----01环境安装
由两个栈组成的队列
YUV player
toolbar的使用
2-6.自动化采集
J1 常用的DOS命令(P25)
MathWorks has been in China for 15 years. What are the secrets of continuous innovation?
[paper notes] effective CNN architecture design guided by visualization
Configuring WAPI certificate security policy for Huawei wireless devices
Is the yield of financial products high or low?
Summer Challenge harmonyos - slider slider for custom components
How to use network installation to deploy multiple virtual servers in KVM environment
How does uxdb extract hours, minutes and seconds from date values?
纳米数据足球数据,足球赛事比分,体育数据api,卡塔尔世界杯
【Unity入门计划】基本概念-GameObject&Components
Huawei wireless device configuration wpa2-802.1x-aes security policy
Introduction to cesium
P1086 [NOIP2004 普及组第二题] 花生采摘
[unity introduction plan] interface Introduction (2) -games view & hierarchy & Project & Inspector