Android 性能测试

Android 性能测试

1.内存测试

测试工具:Memory Profiler (Android Studio)
将测试机打开开发者模式,将项目运行到测试机中,
Open AndroidStudio-> menu bar View -->Tool Window -->Profile
–> click ‘+’–>add phone–> add nedd package name–>Meory View

2.CPU测试

测试工具:CPU Profiler (Android Studio)
将测试机打开开发者模式,将项目运行到测试机中,
Open AndroidStudio-> menu bar View -->Tool Window -->Profile
–> click ‘+’–>add phone–> add nedd package name–>CPU View

3.网络测试

测试工具: Network Profiler(Android Studio)
将测试机打开开发者模式,将项目运行到测试机中,
Open AndroidStudio-> menu bar View -->Tool Window -->Profile
–> click ‘+’–>add phone–> add nedd package name–>CPU View

4.电量测试

测试工具: Energy Profilerr(Android Studio)
将测试机打开开发者模式,将项目运行到测试机中,
Open AndroidStudio-> menu bar View -->Tool Window -->Profile
–> click ‘+’–>add phone–> add nedd package name–>Energy View

5.页面滑动,切换速度

网易测试工具:Emmagee
腾讯测试工具:GT

6.访问接口的网络速度

网易测试工具:Emmagee
腾讯测试工具:GT

7.App启动时间

测试工具: adb命令
将测试机打开开发者模式,将项目运行到测试机中,
adb shell am start -W App的paclagename/.MainActivity

8.GPU渲染

测试工具: Debug GPU overdraw
将测试机打开开发者模式,将项目运行到测试机中,
open developer option–>select debug GPU overdraw–>select -->overdraw area
**description
GPU description:

  1. No color: no over-drawing, that is, one pixel is drawn once, showing the original color of the application
  2. Blue: 1x overdraw, that is, one pixel is drawn twice
  3. Green: 2 times over draw, that is, one pixel is drawn 3 times
  4. Pink: 3 times over draw, that is, a pixel is drawn 4 times
  5. Crimson: 4 times over draw and above, that is, a pixel has been drawn 5 times and above

9.包分析

测试工具: APK Analyzer
将测试机打开开发者模式,将项目运行到测试机中,
finish build apk–>click Android studio menu bar—> build—> Analyze apk, then select apk

你可能感兴趣的:(Android)