summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohan Srinivasan <srmohan@google.com>2017-01-31 16:06:32 -0800
committerDaniel Rosenberg <drosen@google.com>2017-04-04 19:54:36 -0700
commit0c8cc16050ab3f4d3cf76734d376713822318abd (patch)
treee8f9273a671efa8f055cfd3a53c99ed80b4c94ff
parent2f875d91b79df3793e1f6b7e9470c220645ed579 (diff)
downloadextras-0c8cc16050ab3f4d3cf76734d376713822318abd.tar.gz
Use TotalTime instead of ThisTime as app launch latency metric
Use TotalTime instead of ThisTime (both reported by am) as our activity launch latency metric. TotalTime is more representative of user perceived latency. Also add back YouTube to the list of apps we launch test by default. Test: Time app launches manually for the various apps, and check that TotalTime better represents the launch latency. Change-Id: I127a22ae409ee0141d847e711e09f7873dbb420f Signed-off-by: Mohan Srinivasan <srmohan@google.com>
-rwxr-xr-xapp-launcher/app-launcher20
1 files changed, 7 insertions, 13 deletions
diff --git a/app-launcher/app-launcher b/app-launcher/app-launcher
index 44e62f8d..f02b3dcc 100755
--- a/app-launcher/app-launcher
+++ b/app-launcher/app-launcher
@@ -45,19 +45,13 @@ getstats () {
app=$2
echo "Data for $app :"
- # Chrome related Hack alert :
- # For Chrome launches, "TotalTime" is the right metric to measure. That is closer
- # to what the user seems Chrome launch time as. So special case Chrome here.
-
- if [ $app == Chrome ]; then
- launch_time_string="TotalTime"
- else
- launch_time_string="ThisTime"
- fi
+ # Activity Manager reports ThisTime and TotalTime. TotalTime seems to be
+ # a more measure of the launch from the users perspective. So using TotalTime
+ # as our metric for launch latency
# From Activity Manager
- echo "Launch Time :"
- fgrep $launch_time_string $infile | awk '{print $2}' | computestats
+ echo "Launch Time (TotalTime) :"
+ fgrep TotalTime $infile | awk '{print $2}' | computestats
# Data from simpleperf
echo "cpu-cycles :"
@@ -360,8 +354,8 @@ launch_phone_apps() {
getstats camera-$model Camera
launch_app com.google.android.apps.maps com.google.android.maps.MapsActivity > maps-$model
getstats maps-$model Maps
-# launch_app com.google.android.youtube com.google.android.apps.youtube.app.WatchWhileActivity > youtube-$model
-# getstats youtube-$model YouTube
+ launch_app com.google.android.youtube com.google.android.apps.youtube.app.WatchWhileActivity > youtube-$model
+ getstats youtube-$model YouTube
}
usage() {