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
1 file changed