Reputation: 2582
After googled this topic, I know there are several ways to measure the startup time of an android app.
What is the most precise way to measure startup time of an Android app? What are the differences among them?
Upvotes: 1
Views: 4081
Reputation: 5229
This is from Official Android Documentation
From API 19 onwards, logcat includes an output line containing a value called Displayed. This value represents the amount of time elapsed between launching the process and finishing drawing the corresponding activity on the screen. The elapsed time encompasses the following sequence of events:
Log line looks like this
ActivityManager: Displayed com.android.myexample/.StartupTiming: +3s534ms
In order for this to work disable filters in logcat view in android studio because the system server, not the app itself, serves this log.
Check this official link for further explanation about different methods.
Upvotes: 3