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<!-- Metric collectors for longevity runs. --> 17<configuration description="Metric collectors for longevity runs."> 18 <metrics_collector class="com.android.tradefed.device.metric.ScheduleMultipleDeviceMetricCollector"> 19 <!-- Collect fragmentation info every 2 minutes. --> 20 <option name="metric-collection-intervals" key="fragmentation" value="120000" /> 21 <option name="metric-collector-command-classes" value="com.android.tradefed.device.metric.BuddyInfoMetricCollector" /> 22 23 <!-- Collect compact memory dump every 3 minutes. --> 24 <option name="metric-collection-intervals" key="compact-meminfo" value="180000" /> 25 <option name="metric-collector-command-classes" value="com.android.tradefed.device.metric.MemInfoMetricCollector" /> 26 27 <!-- Collect graphicsstats dump every 4 minutes. --> 28 <option name="metric-collection-intervals" key="jank" value="240000" /> 29 <option name="metric-collector-command-classes" value="com.android.tradefed.device.metric.GraphicsStatsMetricCollector" /> 30 31 <!-- Collect bugreport every 1 hour. --> 32 <option name="metric-collection-intervals" key="bugreportz" value="3600000" /> 33 <option name="metric-collector-command-classes" value="com.android.tradefed.device.metric.BugreportzMetricCollector" /> 34 35 <!-- Collect ion audio and system heap info every 15 minutes. --> 36 <option name="metric-collection-intervals" key="ion" value="900000" /> 37 <option name="metric-collector-command-classes" value="com.android.tradefed.device.metric.IonHeapInfoMetricCollector" /> 38 39 <!-- Collect pagetype info every 10 minutes. --> 40 <option name="metric-collection-intervals" key="pagetypeinfo" value="600000" /> 41 <option name="metric-collector-command-classes" value="com.android.tradefed.device.metric.PagetypeInfoMetricCollector" /> 42 43 <!-- Collect trace every 20 minutes. --> 44 <option name="metric-collection-intervals" key="trace" value="1200000" /> 45 <option name="metric-collector-command-classes" value="com.android.tradefed.device.metric.TraceMetricCollector" /> 46 <!-- Add more if there are requests. --> 47 </metrics_collector> 48</configuration> 49