OSDN Git Service

Add more ways to run AppLaunch.
authorNicolas Geoffray <ngeoffray@google.com>
Mon, 12 Feb 2018 21:21:20 +0000 (21:21 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Thu, 15 Feb 2018 10:44:17 +0000 (10:44 +0000)
commite7a566f2fb6701d7fd32ca0c983dbe9364a90ca1
tree9e98a378a9809f4232082e49f358d261760e13dc
parent90f285ba517995f391494279d12a7cdb4bd024c2
Add more ways to run AppLaunch.

1) Pass a list of compiler filters.
2) Pass an option to output cpu cycles and major faults from app.

bug: 73091359

Test: adb shell "am instrument -e drop_cache true -e compiler_filters \"speed-profile|verify|quicken\" -e simpleperf_app true -e apps com.google.android.apps.maps^Maps -e launch_directory /data/local/tmp -w  com.android.tests.applaunch com.android.tests.applaunch/android.test.InstrumentationTestRunner"

Test:
adb shell "am instrument -e drop_cache true -e simpleperf_cmd \"simpleperf stat -a\" -e apps com.google.android.apps.maps^Maps -e launch_directory /data/local/tmp -w  com.android.tests.applaunch com.android.tests.applaunch/android.test.InstrumentationTestRunner"

com.android.tests.applaunch.AppLaunch:INSTRUMENTATION_STATUS: Maps=1488,1850,1973,1972,1929,1947,1968,1771,2006,1912,
INSTRUMENTATION_STATUS_CODE: 0
.
Test results for InstrumentationTestRunner=.
Time: 88.636

OK (1 test)

Change-Id: I61fea8c124107cbd7234f69358078780ab74c4b6
tests/AppLaunch/src/com/android/tests/applaunch/AppLaunch.java