一、Android App性能测试
- 启动
1.1. 冷启动
执行启动命令:adb shell am start -W -n package/activity
执行结果:
Starting: Intent { cmp=package/activity}
Status: ok
LaunchState: COLD
Activity: package/activity
TotalTime: 2212
WaitTime: 2217
Complete
杀App命令:adb shell am force-stop package
1.2. 热启动
执行启动命令:adb shell am start -W -n package/activity
执行结果:
Starting: Intent { cmp=package/activity}
Status: ok
LaunchState: UNKNOWN (0)
Activity: package/activity
WaitTime: 41
Complete
将App放后台:adb shell input keyevent 3(模拟点击back键)
网友评论