app功耗测试软件,Android app专项测试之耗电量测试

前言

耗电量指标

待机时间成关注目标

提升用户体验

通过不同的测试场景,找出app高耗电的场景并解决

01需要的环境准备

1、python2.7(必须是2.7,3.X版本是不支持的)

2、golang语言的开发环境

3、Android SDK

此三个的环境搭建这里就不详细说了,自行在 上找资料吧

02battery-historian服务搭建

1、克隆安装包

git clone https://github.com/google/battery-historian.git

2、下载battery-historian的代码和依赖

go get -d -u github.com/google/battery-historian/…

3、修改setup.go文件的参数

closureCompilerVersion = “20170409”

值修改为

closureCompilerVersion = “20190513”

因为版本不一样,编译会失败,所以升级到稳定版本

4、切换到setup.go所在的目录,进行编译

go run setup.go

6、验证是否安装成功http://localhost:9999/,出现如下,则ok

举 /反馈

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年6月21日
下一篇 2021年6月21日

相关推荐