Merge "Update ActivityManagerPerfTests test config." into sc-dev am: de94a02e31

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14077515

Change-Id: I4e3693fed7b035607790b0990919f4f69d82d50b
This commit is contained in:
Jing Ji
2021-04-03 04:02:06 +00:00
committed by Automerger Merge Worker
2 changed files with 18 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ android_test {
"androidx.test.rules",
"apct-perftests-utils",
"ActivityManagerPerfTestsUtils",
"collector-device-lib-platform",
],
platform_apis: true,
min_sdk_version: "25",

View File

@@ -28,5 +28,22 @@
<test class="com.android.tradefed.testtype.AndroidJUnitTest">
<option name="package" value="com.android.frameworks.perftests.amtests"/>
<option name="runner" value="androidx.test.runner.AndroidJUnitRunner"/>
<!-- TODO: Add PerfettoListener to automatically capture perfetto traces for each test-->
<!-- Listener related args for collecting the traces and waiting for the device
to stabilize. -->
<option name="device-listeners"
value="android.device.collectors.ProcLoadListener" />
<!-- Guarantee that user defined RunListeners will be running before any of the default
listeners defined in this runner. -->
<option name="instrumentation-arg" key="newRunListenerMode" value="true" />
<!-- ProcLoadListener related arguments -->
<!-- Wait for device last minute threshold to reach 3 with 2 minute timeout before
starting the test run -->
<option name="instrumentation-arg" key="procload-collector:per_run" value="true" />
<option name="instrumentation-arg" key="proc-loadavg-threshold" value="3" />
<option name="instrumentation-arg" key="proc-loadavg-timeout" value="120000" />
<option name="instrumentation-arg" key="proc-loadavg-interval" value="10000" />
</test>
</configuration>