IMonitor


public interface IMonitor

androidx.test.jank.IMonitor


An interface used to define a class that monitors test methods and collects metrics.

Summary

Public methods

abstract Bundle getMetrics()

Get the summary results accross all iterations.

abstract void startIteration()

Begin monitoring a test method.

abstract Bundle stopIteration()

Stop monitoring a test method and return intermediate results for this iteration.

Public methods

getMetrics

public abstract Bundle getMetrics ()

Get the summary results accross all iterations.

Returns
Bundle

startIteration

public abstract void startIteration ()

Begin monitoring a test method.

Throws
Throwable

stopIteration

public abstract Bundle stopIteration ()

Stop monitoring a test method and return intermediate results for this iteration.

Returns
Bundle A Bundle of test results.

Throws
Throwable