AggregatePostProcessor
public
class
AggregatePostProcessor
extends BasePostProcessor
java.lang.Object | ||
↳ | com.android.tradefed.postprocessor.BasePostProcessor | |
↳ | com.android.tradefed.postprocessor.AggregatePostProcessor |
A metric aggregator that gives the min, max, mean, variance and standard deviation for numeric metrics collected during multiple-iteration test runs, treating them as doubles. Non-numeric metrics are ignored.
It parses metrics from single string as currently metrics are passed this way.
Summary
Public constructors | |
---|---|
AggregatePostProcessor()
|
Public methods | |
---|---|
|
processRunMetricsAndLogs(
Implement this method in order to generate a set of new metrics from the existing metrics and logs. |
|
processTestMetricsAndLogs(TestDescription testDescription,
Implement this method to post process metrics and logs from each test. |
Public constructors
AggregatePostProcessor
public AggregatePostProcessor ()
Public methods
processRunMetricsAndLogs
publicprocessRunMetricsAndLogs ( rawMetrics, 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 |
: The set of raw metrics available for the run. |
runLogs |
: The set of log files for the test run. |
Returns | |
---|---|
|
The set of newly generated metrics from the run metrics. |
processTestMetricsAndLogs
publicprocessTestMetricsAndLogs (TestDescription testDescription, testMetrics, testLogs)
Implement this method to post process metrics and logs from each test. Only the newly generated metrics should be returned, and with unique key name (no collision with existing keys are allowed).
Parameters | |
---|---|
testDescription |
TestDescription : The TestDescription object describing the test. |
testMetrics |
: The set of metrics from the test. |
testLogs |
: The set of files logged during the test. |
Returns | |
---|---|
|
The set of newly generated metrics from the test metrics. |