androidx.benchmark

Classes

BenchmarkState

Control object for benchmarking in the code in Java.

MetricCapture

Microbenchmark metric.

MicrobenchmarkConfig

Experimental config object for microbenchmarks for defining custom metrics, tracing behavior, and profiling, which overrides options set in instrumentation arguments.

ProfilerConfig

Profiler configuration object.

ProfilerConfig.MethodTracing
ProfilerConfig.StackSampling
TimeCapture

Time metric, which reports time in nanos, based on the time passed to captureStop.

Objects

Annotations

BenchmarkState.Companion.ExperimentalExternalReport
ExperimentalBenchmarkConfigApi

Annotation indicating experimental API primarily intended to allow configuration of microbenchmarks from code, overriding instrumentation arguments like androidx.benchmark.profiling.mode, and custom microbenchmark metrics.

ExperimentalBenchmarkStateApi

Annotation indicating experimental API primarily intended to allow microbenchmarks independent of the BenchmarkRule JUnit4 API.