MetricOutputData
public
class
MetricOutputData
extends Object
java.lang.Object | |
↳ | com.android.tradefed.profiler.MetricOutputData |
A class which produces formatted metrics. It builds up formatted metrics using a
StringBuilder
as a buffer.
Summary
Fields | |
---|---|
StringBuilder |
mMetrics
|
Public constructors | |
---|---|
MetricOutputData()
|
Public methods | |
---|---|
void
|
addMetrics(String prefix, TestIdentifier test, Map<String, Double> metrics)
Add new metrics to the output buffer. |
void
|
addMetrics(String prefix, String test, Map<String, Double> metrics)
Add new metrics to the output buffer. |
InputStreamSource
|
getFormattedMetrics()
Returns an |
void
|
startNewMetric()
Start a new metric in the output buffer. |
Fields
mMetrics
StringBuilder mMetrics
Public constructors
MetricOutputData
MetricOutputData ()
Public methods
addMetrics
void addMetrics (String prefix, TestIdentifier test, Map<String, Double> metrics)
Add new metrics to the output buffer.
Parameters | |
---|---|
prefix |
String : A prefix to append to the test name. |
test |
TestIdentifier : A TestIdentifier which contains the test name. |
metrics |
Map : The metrics to add.
|
addMetrics
void addMetrics (String prefix, String test, Map<String, Double> metrics)
Add new metrics to the output buffer.
Parameters | |
---|---|
prefix |
String : A prefix to append to the test name. |
test |
String : The name of the test. |
metrics |
Map : The metrics to add.
|
getFormattedMetrics
InputStreamSource getFormattedMetrics ()
Returns an InputStreamSource
representation of the output buffer
Returns | |
---|---|
InputStreamSource |
the InputStreamSource
|
startNewMetric
void startNewMetric ()
Start a new metric in the output buffer.
Interfaces
Classes