public static interface PerformanceCollector.PerformanceResultsWriter
Modifier and Type | Method and Description |
---|---|
void |
writeBeginSnapshot(String label)
Callback invoked as first action in
PerformanceCollector#beginSnapshot(String) for reporting the start of
a performance snapshot.
|
void |
writeEndSnapshot(Bundle results)
Callback invoked as last action in PerformanceCollector#endSnapshot()
for reporting performance data collected in the snapshot.
|
void |
writeMeasurement(String label,
float value)
Callback invoked as last action in
PerformanceCollector.addMeasurement(String, float) for
reporting a float type measurement. |
void |
writeMeasurement(String label,
long value)
Callback invoked as last action in
PerformanceCollector.addMeasurement(String, long) for
reporting an integer type measurement. |
void |
writeMeasurement(String label,
String value)
Callback invoked as last action in
PerformanceCollector.addMeasurement(String, String) for
reporting a string field. |
void |
writeStartTiming(String label)
Callback invoked as first action in
PerformanceCollector#startTiming(String) for reporting the start of
a timing measurement.
|
void |
writeStopTiming(Bundle results)
Callback invoked as last action in
PerformanceCollector.stopTiming(String) for reporting the
sequence of timings measured. |
void writeBeginSnapshot(String label)
label
- description of code block between beginSnapshot and
PerformanceCollector#endSnapshot()PerformanceCollector.beginSnapshot(String)
void writeEndSnapshot(Bundle results)
results
- memory and runtime metrics stored as key/value pairs,
in the same structure as returned by
PerformanceCollector#endSnapshot()PerformanceCollector.endSnapshot()
void writeStartTiming(String label)
label
- description of code block between startTiming and
PerformanceCollector#stopTiming(String)PerformanceCollector.startTiming(String)
void writeStopTiming(Bundle results)
PerformanceCollector.stopTiming(String)
for reporting the
sequence of timings measured.results
- runtime metrics of code block between calls to
startTiming and stopTiming, in the same structure as
returned by PerformanceCollector#stopTiming(String)PerformanceCollector.stopTiming(String)
void writeMeasurement(String label, long value)
PerformanceCollector.addMeasurement(String, long)
for
reporting an integer type measurement.label
- short description of the metric that was measuredvalue
- long value of the measurementvoid writeMeasurement(String label, float value)
PerformanceCollector.addMeasurement(String, float)
for
reporting a float type measurement.label
- short description of the metric that was measuredvalue
- float value of the measurementvoid writeMeasurement(String label, String value)
PerformanceCollector.addMeasurement(String, String)
for
reporting a string field.label
- short description of the metric that was measuredvalue
- string summary of the measurement