jdesprez | 3e09705 | 2018-03-29 12:17:50 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2018 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 MultiUserPerfTests metric instrumentation."> |
| 17 | <option name="test-suite-tag" value="apct" /> |
| 18 | <option name="test-suite-tag" value="apct-metric-instrumentation" /> |
Gopinath Elanchezhian | 89c157c | 2020-08-03 12:17:01 -0700 | [diff] [blame^] | 19 | |
jdesprez | 3e09705 | 2018-03-29 12:17:50 -0700 | [diff] [blame] | 20 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 21 | <option name="cleanup-apks" value="true" /> |
| 22 | <option name="test-file-name" value="MultiUserPerfTests.apk" /> |
Bookatz | 8bdf3a6 | 2019-05-30 11:36:22 -0700 | [diff] [blame] | 23 | <option name="test-file-name" value="MultiUserPerfDummyApp.apk" /> |
jdesprez | 3e09705 | 2018-03-29 12:17:50 -0700 | [diff] [blame] | 24 | </target_preparer> |
| 25 | |
Gopinath Elanchezhian | 89c157c | 2020-08-03 12:17:01 -0700 | [diff] [blame^] | 26 | <!-- Needed for pushing the trace config file --> |
| 27 | <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> |
| 28 | <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer"> |
| 29 | <option name="push-file" key="trace_config_detailed.textproto" value="/data/misc/perfetto-traces/trace_config.textproto" /> |
| 30 | </target_preparer> |
| 31 | |
| 32 | <!-- Needed for pulling the collected trace config on to the host --> |
| 33 | <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> |
| 34 | <option name="pull-pattern-keys" value="perfetto_file_path" /> |
| 35 | </metrics_collector> |
| 36 | |
| 37 | <!-- Needed for storing the perfetto trace files in the sdcard/test_results--> |
| 38 | <option name="isolated-storage" value="false" /> |
| 39 | |
jdesprez | 3e09705 | 2018-03-29 12:17:50 -0700 | [diff] [blame] | 40 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
| 41 | <option name="package" value="com.android.perftests.multiuser" /> |
Nicolas Geoffray | eff3f44 | 2018-04-06 09:20:33 +0100 | [diff] [blame] | 42 | <option name="hidden-api-checks" value="false"/> |
Gopinath Elanchezhian | 89c157c | 2020-08-03 12:17:01 -0700 | [diff] [blame^] | 43 | |
| 44 | <!-- Listener related args for collecting the traces and waiting for the device to stabilize. --> |
| 45 | <option name="device-listeners" value="android.device.collectors.ProcLoadListener,android.device.collectors.PerfettoListener" /> |
| 46 | <!-- Guarantee that user defined RunListeners will be running before any of the default listeners defined in this runner. --> |
| 47 | <option name="instrumentation-arg" key="newRunListenerMode" value="true" /> |
| 48 | |
| 49 | <!-- ProcLoadListener related arguments --> |
| 50 | <!-- Wait for device last minute threshold to reach 3 with 2 minute timeout before starting the test run --> |
| 51 | <option name="instrumentation-arg" key="procload-collector:per_run" value="true" /> |
| 52 | <option name="instrumentation-arg" key="proc-loadavg-threshold" value="3" /> |
| 53 | <option name="instrumentation-arg" key="proc-loadavg-timeout" value="120000" /> |
| 54 | <option name="instrumentation-arg" key="proc-loadavg-interval" value="10000" /> |
| 55 | |
| 56 | <!-- PerfettoListener related arguments --> |
| 57 | <option name="instrumentation-arg" key="perfetto_config_text_proto" value="true" /> |
| 58 | <option name="instrumentation-arg" key="perfetto_config_file" value="trace_config.textproto" /> |
| 59 | |
| 60 | <option name="instrumentation-arg" key="newRunListenerMode" value="true" /> |
| 61 | |
jdesprez | 3e09705 | 2018-03-29 12:17:50 -0700 | [diff] [blame] | 62 | </test> |
| 63 | </configuration> |