Effective in 2026, to align with our trunk stable development model and ensure platform stability for the ecosystem, we will publish source code to AOSP in Q2 and Q4. For building and contributing to AOSP, use android-latest-release. The android-latest-release manifest branch will always reference the most recent release pushed to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
SimpleperfProfilePostProcessor
public
class
SimpleperfProfilePostProcessor
extends BasePostProcessor
A post processor that finds simpleperf profiling data and generates a pprof profile.
Summary
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.
|
Map<String, MetricMeasurement.Metric.Builder>
|
processTestMetricsAndLogs(TestDescription testDescription, HashMap<String, MetricMeasurement.Metric> testMetrics, Map<String, LogFile> testLogs)
Implement this method to post process metrics and logs from each test.
|
Protected methods |
MetricMeasurement.DataType
|
getMetricType()
Override this method to change the metric type if needed.
|
Public constructors
SimpleperfProfilePostProcessor
public SimpleperfProfilePostProcessor ()
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. |
processTestMetricsAndLogs
public Map<String, MetricMeasurement.Metric.Builder> processTestMetricsAndLogs (TestDescription testDescription,
HashMap<String, MetricMeasurement.Metric> testMetrics,
Map<String, LogFile> 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 |
HashMap: The set of metrics from the test. |
testLogs |
Map: The set of files logged during the test. |
| Returns |
Map<String, MetricMeasurement.Metric.Builder> |
The set of newly generated metrics from the test metrics. |
Protected methods
getMetricType
protected MetricMeasurement.DataType getMetricType ()
Override this method to change the metric type if needed. By default metric is set to
processed type.
| Returns |
MetricMeasurement.DataType |
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-06-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-22 UTC."],[],[]]