MetricsXMLResultReporter
public
class
MetricsXMLResultReporter
extends CollectingTestListener
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.CollectingTestListener | |
| ↳ | com.android.tradefed.result.MetricsXMLResultReporter | |
MetricsXMLResultReporter writes test metrics and run metrics to an XML file in a folder specified by metrics-folder parameter at the invocationEnded phase of the test. The XML file will be piped into an algorithm to detect regression.
All k-v paris in run metrics map will be formatted into:
All k-v paris in run metrics map will be formatted into:
A sample XML format:
Summary
Public constructors | |
|---|---|
MetricsXMLResultReporter()
|
|
Public methods | |
|---|---|
OutputStream
|
createOutputStream()
|
String
|
getTimeStamp()
Return the current timestamp as a |
void
|
invocationEnded(long elapsedTime)
|
Public constructors
MetricsXMLResultReporter
public MetricsXMLResultReporter ()
Public methods
createOutputStream
public OutputStream createOutputStream ()
| Returns | |
|---|---|
OutputStream |
|
invocationEnded
public void invocationEnded (long elapsedTime)
| Parameters | |
|---|---|
elapsedTime |
long |