可以用adb shell来计算启动时间
adb shell启动Activity 并计算启动时间:adb shell am start -W -n 类名/.activity名字
楼主这里就是:
adb shell am start -W -n com.android.speechrecorder/.SpeechRecorderActivity
试试
adb shell启动Activity 并计算启动时间:adb shell am start -W -n 类名/.activity名字
楼主这里就是:
adb shell am start -W -n com.android.speechrecorder/.SpeechRecorderActivity
试试
21.164 这个start是从发出intent后框架的打印时间,
21.634 这个start是发出intent后,也就是startAcitivity后,根据intent内容找到了对应需要启动的activity,而开始计算的时间点。
对 Display中 +3s714ms你就可以理解成启动花费的时间。