Package org.robolectric.util
Class SimplePerfStatsReporter
java.lang.Object
org.robolectric.util.SimplePerfStatsReporter
- All Implemented Interfaces:
PerfStatsReporter
Simple implementation of PerfStatsReporter that writes stats to stdout.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by Robolectric one time at the end of the test session, typically in a JVM shutdown hook.voidreport(Metadata metadata, Collection<Metric> metrics) Report performance stats.
-
Constructor Details
-
SimplePerfStatsReporter
public SimplePerfStatsReporter()
-
-
Method Details
-
report
Description copied from interface:PerfStatsReporterReport performance stats.The Robolectric test runner will call this method one or more times with a set of metrics. Implementations should store the data in a way that can be accessed by
PerfStatsReporter.finalReport().- Specified by:
reportin interfacePerfStatsReporter- Parameters:
metadata- metadata about this set of metrics.metrics- the metrics.
-
finalReport
public void finalReport()Description copied from interface:PerfStatsReporterCalled by Robolectric one time at the end of the test session, typically in a JVM shutdown hook. Implementations can use this to report the metrics they have stored from previous calls toPerfStatsReporter.report(org.robolectric.pluginapi.perf.Metadata, java.util.Collection<org.robolectric.pluginapi.perf.Metric>).- Specified by:
finalReportin interfacePerfStatsReporter
-