AveragePostProcessor

public class AveragePostProcessor
extends BasePostProcessor

java.lang.Object
   ↳ com.android.tradefed.postprocessor.BasePostProcessor
     ↳ com.android.tradefed.postprocessor.AveragePostProcessor


Implementation of post processor that calculate the average of the list of metrics.

Summary

Constants

String AVERAGE_KEY_TAG

Public constructors

AveragePostProcessor()

Public methods

Map<String, MetricMeasurement.Metric.Builder> processRunMetricsAndLogs(HashMap<String, MetricMeasurement.Metric> rawMetrics, Map<String, LogFile> runLogs)

Implement this method in order to generate a set of new metrics from the existing metrics and logs.

Constants

AVERAGE_KEY_TAG

public static final String AVERAGE_KEY_TAG

Constant Value: "_avg"

Public constructors

AveragePostProcessor

public AveragePostProcessor ()

Public methods

processRunMetricsAndLogs

public Map<String, MetricMeasurement.Metric.Builder> processRunMetricsAndLogs (HashMap<String, MetricMeasurement.Metric> rawMetrics, 
                Map<String, LogFile> runLogs)

Implement this method in order to generate a set of new metrics from the existing metrics and logs. Only the newly generated metrics should be returned, and with unique key name (no collision with existing keys are allowed).

Parameters
rawMetrics HashMap: The set of raw metrics available for the run.

runLogs Map: The set of log files for the test run.

Returns
Map<String, MetricMeasurement.Metric.Builder> The set of newly generated metrics from the run metrics.