# androidx.benchmark

*** ** * ** ***

## Annotations

|---|---|
| `https://developer.android.com/reference/androidx/benchmark/ExperimentalBenchmarkConfigApi` | Annotates declarations that are considered experimental within the Benchmark API, and are likely to change before becoming stable. |
| `https://developer.android.com/reference/androidx/benchmark/ExperimentalBenchmarkStateApi` | Annotation indicating experimental API primarily intended to allow microbenchmarks independent of the BenchmarkRule JUnit4 API. |

## Classes

|---|---|
| `https://developer.android.com/reference/androidx/benchmark/BenchmarkState` | Control object for microbenchmarking in Java. |
| `https://developer.android.com/reference/androidx/benchmark/ExperimentalConfig` | Experimental configuration options for a benchmark. |
| `https://developer.android.com/reference/androidx/benchmark/MemoryProfilingConfig` | Configuration for memory heap profiling during macrobenchmark execution. |
| `https://developer.android.com/reference/androidx/benchmark/MetricCapture` | Microbenchmark metric. |
| `https://developer.android.com/reference/androidx/benchmark/MicrobenchmarkConfig` | Experimental config object for microbenchmarks for defining custom metrics, tracing behavior, and profiling, which overrides options set in [instrumentation arguments](https://developer.android.com/topic/performance/benchmarking/microbenchmark-instrumentation-args). |
| `https://developer.android.com/reference/androidx/benchmark/MicrobenchmarkScope` | Scope handle for pausing/resuming microbenchmark measurement. |
| `https://developer.android.com/reference/androidx/benchmark/ProfilerConfig` | Profiler configuration object. |
| `https://developer.android.com/reference/androidx/benchmark/ProfilerConfig.MethodTracing` |   |
| `https://developer.android.com/reference/androidx/benchmark/ProfilerConfig.StackSampling` |   |
| `https://developer.android.com/reference/androidx/benchmark/StartupInsightsConfig` | Configuration for Startup Insights. |
| `https://developer.android.com/reference/androidx/benchmark/TimeCapture` | Time metric, which reports time in nanos, based on the time passed to `https://developer.android.com/reference/androidx/benchmark/TimeCapture#captureStop(kotlin.Long,kotlin.LongArray,kotlin.Int)`. |
| `https://developer.android.com/reference/androidx/benchmark/TraceProcessorExtensions` |   |
| `https://developer.android.com/reference/androidx/benchmark/BlackHole` | Function calls which can be used to prevent optimization of results. |

## Enums

|---|---|
| `https://developer.android.com/reference/androidx/benchmark/InProcessTracingMode` | Configuration for in-process tracing. |