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(DeviceMetricData) and onTestRunEnd(DeviceMetricData, Map)
BuddyInfoMetricCollector A ScheduledDeviceMetricCollector to collect fragmentation at regular intervals. 
BugreportzMetricCollector A ScheduledDeviceMetricCollector to collect zipped bugreport at regular intervals. 
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. 
IonHeapInfoMetricCollector A ScheduledDeviceMetricCollector to collect audio and system memory heaps at regular intervals. 
MemInfoMetricCollector A ScheduledDeviceMetricCollector to collect memory dumps at regular intervals. 
PagetypeInfoMetricCollector A ScheduledDeviceMetricCollector to collect free page counts at regular intervals. 
ProcessMaxMemoryCollector A ScheduledDeviceMetricCollector to measure peak memory usage of specified processes. 
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. 
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.