diff options
author | Todd Kjos <tkjos@google.com> | 2015-07-17 12:52:59 -0700 |
---|---|---|
committer | Todd Kjos <tkjos@google.com> | 2015-07-17 12:53:40 -0700 |
commit | 99eb5eaeb69a8ebb496daa55dc92df4caf268947 (patch) | |
tree | 2350879938a85a064ddcba00ff6be45c9c2c1499 /tests/workloads/systemapps.sh | |
parent | f7ae71d941f4ef0a99da449bf9e25423acf58cd2 (diff) | |
download | extras-99eb5eaeb69a8ebb496daa55dc92df4caf268947.tar.gz |
Workload script updates from bullhead/angler testing
Put test script in background if appropriate. Add ability
to dump memory stats independent of atrace data. Bugfixes (fix
atrace analysis when running on device).
Change-Id: Ic7b0e6d315d4d9a56ff8d60ae841a19d0ff3a62f
Diffstat (limited to 'tests/workloads/systemapps.sh')
-rwxr-xr-x | tests/workloads/systemapps.sh | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/tests/workloads/systemapps.sh b/tests/workloads/systemapps.sh index a263e7d2..eec1c146 100755 --- a/tests/workloads/systemapps.sh +++ b/tests/workloads/systemapps.sh @@ -23,12 +23,13 @@ # Other options are described below. # iterations=1 -tracecategories="gfx view am input memreclaim" +tracecategories="gfx am memreclaim" totaltimetest=0 forcecoldstart=0 waitTime=3.0 +memstats=0 -appList="gmail hangouts chrome youtube play home" +appList="gmail maps chrome youtube play home" function processLocalOption { ret=0 @@ -38,6 +39,7 @@ function processLocalOption { (-L) appList=$2; shift; ret=1;; (-T) totaltimetest=1;; (-W) waitTime=$2; shift; ret=1;; + (-M) memstats=1;; (*) echo "$0: unrecognized option: $1" echo; echo "Usage: $0 [options]" @@ -141,6 +143,7 @@ do if [ $iterations -gt 1 ]; then echo ========================================= echo Iteration $cur of $iterations + date echo ========================================= fi if [ $iterations -gt 1 -o $cur -eq 1 ]; then @@ -160,8 +163,11 @@ do if [ $totaltimetest -eq 0 ]; then tmpTraceOut="$tmpTraceOutBase-$app.out" >$tmpTraceOut - startInstramentation + startInstramentation $cur else + if [ "$memstats" -gt 0 ]; then + startInstramentation $cur 0 + fi if [ $appnum -eq 0 ]; then printf "%-8s %5s(ms) %3s(ms) %s %s\n" App Start Iter Jank Latency fi @@ -239,6 +245,8 @@ if [ $totaltimetest -gt 0 ]; then printf "%-10s %5.0f %5.0f\n" TOTAL $totaltime $diffTime fi +overallSum=0 +appCount=0 if [ $iterations -gt 1 -a $totaltimetest -eq 0 ]; then echo echo ========================================= @@ -258,7 +266,14 @@ if [ $iterations -gt 1 -a $totaltimetest -eq 0 ]; then ((ave90=l90/iterations)) ((ave95=l95/iterations)) ((ave99=l99/iterations)) - ((jankPct=100*janks/frames)) + if [ $frames -gt 0 ]; then + ((jankPct=100*janks/frames)) + fi printf "%-12s %5d %5d %5d %5d %5d %5d(%d%%) %d/%d/%d\n" $app $1 $ave $2 $4 $5 $janks $jankPct $ave90 $ave95 $ave99 + ((overallSum=overallSum+ave)) + ((appCount=appCount+1)) done + if [ $appCount -gt 0 ]; then + printf "Average Start Time: %.2f\n", $(echo $overallSum $appCount | awk '{ printf "%.2f\n", $1/$2 }') + fi fi |