1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2020 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<configuration description="Runs BlobStorePerfTests metric instrumentation."> 17 <option name="test-suite-tag" value="apct" /> 18 <option name="test-suite-tag" value="apct-metric-instrumentation" /> 19 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 20 <option name="cleanup-apks" value="true" /> 21 <option name="test-file-name" value="BlobStorePerfTests.apk" /> 22 </target_preparer> 23 24 <test class="com.android.tradefed.testtype.AndroidJUnitTest" > 25 <option name="package" value="com.android.perftests.blob" /> 26 <option name="hidden-api-checks" value="false"/> 27 28 <!-- TODO: Add PerfettoListener to automatically capture perfetto traces for each test--> 29 <!-- Listener related args for collecting the traces and waiting for the device 30 to stabilize. --> 31 <option name="device-listeners" 32 value="android.device.collectors.ProcLoadListener" /> 33 <!-- Guarantee that user defined RunListeners will be running before any of the default 34 listeners defined in this runner. --> 35 <option name="instrumentation-arg" key="newRunListenerMode" value="true" /> 36 37 <!-- ProcLoadListener related arguments --> 38 <!-- Wait for device last minute threshold to reach 3 with 2 minute timeout before 39 starting the test run --> 40 <option name="instrumentation-arg" key="procload-collector:per_run" value="true" /> 41 <option name="instrumentation-arg" key="proc-loadavg-threshold" value="3" /> 42 <option name="instrumentation-arg" key="proc-loadavg-timeout" value="120000" /> 43 <option name="instrumentation-arg" key="proc-loadavg-interval" value="10000" /> 44 </test> 45</configuration>