-2
經過Google搜索這個主題後,我知道有幾種方法可以衡量Android應用程序的啓動時間。衡量應用/活動啓動時間的最佳方式是什麼?
- adb logcat -b events | grep am_activity_launch_time,請參見this post
- adb logcat -s ActivityManager:I | grep的顯示
- 使用reportFullyDrawn編程
- 亞行殼screenrecord --bugreport /sdcard/launch.mp4,逐幀檢查視頻幀,看this post
- 亞行外殼上午開始-w包名/ MainActivity檢查輸出
- adb logcat -s時間軸:我在輸出中籤出「App_transition_ready」和Activity_windows_visible。
什麼是測量Android應用程序啓動時間的最精確的方法?他們之間有什麼不同?