Search in sources :

Example 1 with Metadata

use of org.robolectric.pluginapi.perf.Metadata in project robolectric by robolectric.

the class SandboxTestRunner method reportPerfStats.

private void reportPerfStats(PerfStatsCollector perfStatsCollector) {
    if (perfStatsReporters.isEmpty()) {
        return;
    }
    Metadata metadata = perfStatsCollector.getMetadata();
    Collection<Metric> metrics = perfStatsCollector.getMetrics();
    for (PerfStatsReporter perfStatsReporter : perfStatsReporters) {
        try {
            perfStatsReporter.report(metadata, metrics);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : PerfStatsReporter(org.robolectric.pluginapi.perf.PerfStatsReporter) Metadata(org.robolectric.pluginapi.perf.Metadata) Metric(org.robolectric.pluginapi.perf.Metric)

Aggregations

Metadata (org.robolectric.pluginapi.perf.Metadata)1 Metric (org.robolectric.pluginapi.perf.Metric)1 PerfStatsReporter (org.robolectric.pluginapi.perf.PerfStatsReporter)1