美文网首页
2023-05-26

2023-05-26

作者: Jinwei_ | 来源:发表于2023-05-25 09:24 被阅读0次

    一、Android App性能测试

    1. 启动
      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键)

    相关文章

      网友评论

          本文标题:2023-05-26

          本文链接:https://www.haomeiwen.com/subject/qsqhedtx.html