当前位置:网站首页>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
边栏推荐
- 【论文笔记】EFFICIENT CNN ARCHITECTURE DESIGN GUIDED BY VISUALIZATION
- The value of integer a after bitwise negation (~) is - (a+1)
- [programmer 2 Civil Servant] III. resource collection
- [paper notes] next vit: next generation vision transformer for efficient deployment in real industry
- 交叉熵计算公式
- 关于GBase 自动关闭连接问题
- cesium简介
- Load capacity - sorting out the mind map that affects load capacity
- 冰冰学习笔记:类与对象(上)
- 【程序员2公务员】一、基本认知
猜你喜欢

SAP queries open Po (open purchase order)

Leetcode (Sword finger offer) - 04. search in two-dimensional array

CSDN custom T-shirts are waiting for you to get, and the benefits of new programmer are coming!

If Debian infringes the rust trademark, will it be exempted by compromising and renaming?

交叉熵计算公式

Beijing internal promotion | Microsoft STCA recruits nlp/ir/dl research interns (remote)

使用CycleGAN训练自己制作的数据集,通俗教程,快速上手

Robot framework mobile terminal Automation Test ----- 01 environment installation

Open source, innovators win, 2022 "science and innovation China" open source innovation list selection is fully open!

【Unity入门计划】基本概念-预制件 Prefab
随机推荐
【Unity入门计划】界面介绍(1)-Scene视图
Huawei wireless device sta black and white list configuration command
[dynamic programming] - Knapsack model
Introduction to cesium
Have you got the advanced usage of pytest?
[programmer 2 Civil Servant] IV. common problems
【Unity入门计划】界面介绍(2)-Games视图&Hierarchy&Project&Inspector
A queue of two stacks
Acnet: asymmetric convolution for image hypersegmentation (with implementation code)
Configuring WAPI certificate security policy for Huawei wireless devices
Matlab self programming series (1) -- angular distribution function
Growth path - InfoQ video experience notes [easy to understand]
UNIPRO multi terminal deployment to meet customers' diversified needs
[notes for question brushing] search the insertion position (flexible use of dichotomy)
[ES6] function parameters, symbol data types, iterators and generators
When deep learning makes data sets, it specifies how many frames to extract an image from the long video to the specified file path
P1048 [NOIP2005 普及组 T3] 采药
Google Earth engine - Landsat 1985-2020 ecological remote sensing index resi calculation
P1046 [noip2005 popularity group t1] Taotao picking apples
[unity introduction program] basic concepts -2d rigid body 2D