StubTestProfiler
public
class
StubTestProfiler
extends AggregatingProfiler
java.lang.Object | ||
↳ | com.android.tradefed.profiler.AggregatingProfiler | |
↳ | com.android.tradefed.profiler.StubTestProfiler |
A stubbed ITestProfiler
which does nothing.
Summary
Public constructors | |
---|---|
StubTestProfiler()
|
Public methods | |
---|---|
String
|
getDescription()
Return a description of this test profiler. |
MetricOutputData
|
getMetricOutputUtil()
Return the |
void
|
reportAllMetrics(ITestInvocationListener unused)
Send all of the metrics recorded by this profiler to an |
void
|
setUp(IInvocationContext unused)
Set up the test profiler. |
void
|
startRecordingMetrics()
Begins recording metrics for a single test on all devices. |
Map<String, Double>
|
stopRecordingMetrics(TestIdentifier unused)
Stops recording metrics for a single test on all devices and returns an aggregated version of the metrics. |
Public constructors
StubTestProfiler
StubTestProfiler ()
Public methods
getDescription
String getDescription ()
Return a description of this test profiler.
Returns | |
---|---|
String |
the description |
getMetricOutputUtil
MetricOutputData getMetricOutputUtil ()
Return the MetricOutputData
object used to hold formatted metrics.
Returns | |
---|---|
MetricOutputData |
the current MetricOutputData
|
reportAllMetrics
void reportAllMetrics (ITestInvocationListener unused)
Send all of the metrics recorded by this profiler to an ITestInvocationListener
.
Parameters | |
---|---|
unused |
ITestInvocationListener : the listener to send metrics to.
|
setUp
void setUp (IInvocationContext unused)
Set up the test profiler.
Parameters | |
---|---|
unused |
IInvocationContext : the IInvocationContext of the test invocation.
|
startRecordingMetrics
void startRecordingMetrics ()
Begins recording metrics for a single test on all devices. This method is called on each call
to testStarted(TestIdentifier)
.
stopRecordingMetrics
Map<String, Double> stopRecordingMetrics (TestIdentifier unused)
Stops recording metrics for a single test on all devices and returns an aggregated version of
the metrics. The metrics are aggregated with getMergeFunction(String)
. This
method is called on each call to testEnded(TestIdentifier, Map
.
Parameters | |
---|---|
unused |
TestIdentifier : the test to stop recording on |
Returns | |
---|---|
Map<String, Double> |
a Map containing the metrics. |
Throws | |
---|---|
DeviceNotAvailableException |
Interfaces
Classes