com.android.tradefed.device.metric

Annotations

MetricOption Annotation for test methods annotated with @Test, or if the annotation is part of the annotation list of TestDescription that allows to specify some extra parameters useful for: Tuning the behavior of the collectors, filtering some methods. 

Interfaces

IMetricCollector This interface will be added as a decorator when reporting tests results in order to collect matching metrics. 
IMetricCollectorReceiver Interface for IRemoteTests to implement if they need to get the list of IMetricCollectors for the test run. 

Classes

AtraceCollector A IMetricCollector that runs atrace during a test and collects the result and log them to the invocation. 
AtraceRunMetricCollector Collects the traces from all the test directory under the given directory from the test device, log the test directory and post process the trace files under the test directory and aggregate the metrics. 
BaseDeviceMetricCollector Base implementation of IMetricCollector that allows to start and stop collection on onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData) and ERROR(/#onTestRunEnd(com.android.tradefed.device.metric.DeviceMetricData,Map))
BuddyInfoMetricCollector A ScheduledDeviceMetricCollector to collect fragmentation at regular intervals. 
BugreportzMetricCollector A ScheduledDeviceMetricCollector to collect zipped bugreport at regular intervals. 
BugreportzOnFailureCollector Collect a bugreportz when a test case fails. 
CollectorHelper Helper to do some IMetricCollector operations needed in several places. 
DebugHostLogOnFailureCollector Collector that will gather and log the host-side logs when a test case failure occurs. 
DeviceMetricData Object to hold all the data collected by metric collectors. 
DumpHeapCollector A ScheduledDeviceMetricCollector to collect memory dumps of processes at regular intervals. 
FilePullerDeviceMetricCollector A BaseDeviceMetricCollector that listen for metrics key coming from the device and pull them as a file from the device. 
FilePullerLogCollector Logger of the file reported by the device-side. 
GraphicsStatsMetricCollector A ScheduledDeviceMetricCollector to collect graphics stats at regular intervals. 
HostStatsdMetricCollector A IMetricCollector that collects statsd metrics from host side using statsd utility commands. 
IncidentReportCollector Pulls and processes incident reports that are reported device-side. 
IonHeapInfoMetricCollector A ScheduledDeviceMetricCollector to collect audio and system memory heaps at regular intervals. 
LogcatOnFailureCollector Collector that will capture and log a logcat when a test case fails. 
MemInfoMetricCollector A ScheduledDeviceMetricCollector to collect memory dumps at regular intervals. 
PagetypeInfoMetricCollector A ScheduledDeviceMetricCollector to collect free page counts at regular intervals. 
PerfettoPullerMetricCollector Base implementation of FilePullerDeviceMetricCollector that allows pulling the perfetto files from the device and collect the metrics from it. 
ProcessMaxMemoryCollector A ScheduledDeviceMetricCollector to measure peak memory usage of specified processes. 
RebootReasonCollector Collector that collects device reboot during the test run and report them by reason and counts. 
RuntimeRestartCollector Collector that collects timestamps of runtime restarts (system server crashes) during the test run, if any. 
ScheduledDeviceMetricCollector A IMetricCollector that allows to run a collection task periodically at a set interval. 
ScheduleMultipleDeviceMetricCollector A IMetricCollector that makes runs multiple metric collectors periodically. 
ScreenshotOnFailureCollector Collector that will capture and log a screenshot when a test case fails. 
TemperatureCollector A ScheduledDeviceMetricCollector to measure min and max device temperature. 
TraceCmdCollector A IMetricCollector that collects traces during the test using trace-cmd, and logs them to the invocation. 
TraceMetricCollector A ScheduledDeviceMetricCollector to collect kernel debug trace at regular intervals. 

Enums

AutoLogCollector Enumeration describing which collector can automatically be handled by the harness.