PerfettoTracePostProcessor
public
class
PerfettoTracePostProcessor
extends BasePostProcessor
| java.lang.Object | ||
| ↳ | com.android.tradefed.postprocessor.BasePostProcessor | |
| ↳ | com.android.tradefed.postprocessor.PerfettoTracePostProcessor | |
A post processor which retrieves perfetto trace files from the test logs and runs the trace processor on them to produce a perfetto metric proto.
Summary
Public constructors | |
|---|---|
PerfettoTracePostProcessor()
|
|
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. |
Protected methods | |
|---|---|
MetricMeasurement.DataType
|
getMetricType()
Set the metric type to RAW so that metrics will be processed by subsequent post processors. |
Public constructors
PerfettoTracePostProcessor
public PerfettoTracePostProcessor ()
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. |
Protected methods
getMetricType
protected MetricMeasurement.DataType getMetricType ()
Set the metric type to RAW so that metrics will be processed by subsequent post processors.
This is necessary for MetricFilePostProcessor to write the metrics to the results file.
| Returns | |
|---|---|
MetricMeasurement.DataType |
|