Issue
We can able to measure the launching time of any app using "adb shell am start -w -n yourpackagename/.activityname" (Wait for launch to complete). This adb shell command will print TotalTime & ThisTime.
But I have following questions?
- What is the difference between TotalTime & ThisTime?
- What is the right metric to measure the performance ? ThisTime or TotalTime ?
- Why sometimes both ThisTime & TotalTime values are equal? why sometimes both are different ?
Example:
adb shell am start -W -n com.android.settings/.ApplicationSettings
ThisTime: 1554
TotalTime: 42815
Solution
Please, look at the answer of this question
"thisTime": just current activity launched time
"totalTime":the activity you started may be on the bottom of activity stack. So it refers to the total time from activity searching to current activity launched.
Answered By - Michael Spitsin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.