你好
我想用adb shell am start -W -n package/activity命令获取app的启动时间
使用logcat | grep START后,手动点击app,logcat中多出的日志中出现了2个activity,
这2个activity都可以用adb shell am start -W 命令单独打开app
app首页的activity是.app.MainallActivity
.app.LoadingActivity 获得的ThisTime和TotalTime都小于.app.MainallActivity
请问应该启动哪个activity?
I/ActivityManager( 2254): START u0 {act=android.intent.action.MAIN cat=[android.
intent.category.LAUNCHER] flg=0x10000000 cmp=com.xxx.xxx/.app.LoadingActivity bnds=[585,1134][753,1302]} from pid 23800
D/wpa_supplicant( 5999): wlan0: Event SCAN_STARTED (57) received
I/wpa_supplicant( 5999): wlan0: CTRL-EVENT-SCAN-STARTED
I/ActivityManager( 2254): START u0 {cmp=com.xxx.xxx/.app.MainallActivity (has ex
tras)} from pid 23800
D/wpa_supplicant( 5999): wlan0: Event SCAN_STARTED (57) received
I/wpa_supplicant( 5999): wlan0: CTRL-EVENT-SCAN-STARTED