<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (C) 2022 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<configuration description="Boot Time Test">
    <metrics_collector class="com.android.tradefed.device.metric.AtraceCollector"/>
    <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer" />
    <!-- Needed to set perfetto trace property before fastboot commands -->
    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer" />
    <target_preparer class="com.android.tradefed.targetprep.FastbootCommandPreparer" />
    <!-- Needed multiple run command target preparer for running commands before/after install. -->
    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer" />
    <target_preparer class="com.android.tradefed.targetprep.TestAppInstallSetup" />
    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer" />
    <target_preparer class="com.android.tradefed.targetprep.InstrumentationPreparer" >
        <option name="disable" value="true" />
    </target_preparer>
    <test class="com.android.performance.tests.BootTimeTest" />
    <metrics_collector class="com.android.tradefed.device.metric.PerfettoPullerMetricCollector">
        <option name="collect-on-run-ended-only" value="false" />
    </metrics_collector>
    <metric_post_processor class="com.android.tradefed.postprocessor.MetricFilePostProcessor">
        <option name="aggregate-similar-tests" value="true" />
    </metric_post_processor>
    <metric_post_processor class="com.android.tradefed.postprocessor.PerfettoGenericPostProcessor" />
</configuration>
