1. 程式人生 > >APP 性能測試

APP 性能測試

sta 啟動 device 停止 cti 指令 dump -s 性能測試

1、環境安裝:

adb sdk 模擬器:genymotion

2、在模擬器上安裝APP

adb install app路徑

3、adb指令

adb devices 查看鏈接的設備

adb logcat | find "START" 查看日誌 過濾 "START"

adb shell am start -W -n com.ustcinfo.f.ch/.view.activity.LoginActivity 啟動APP 可以查看APP啟動時間

cmp=com.ustcinfo.f.ch/.view.activity.LoginActivity

adb shell am force-stop com.ustcinfo.f.ch 停止APP 再啟動時 是冷啟動

adb shell input keyevent 3 停止APP,相當於退回到後臺,再啟動時是熱啟動

4、cpu

adb shell dumpsys cpuinfo | find "com.ustcinfo.f.ch"

APP 性能測試