# ProfilerConfig

Artifact: [androidx.benchmark:benchmark-common](https://developer.android.com/jetpack/androidx/releases/benchmark) [View Source](https://cs.android.com/search?q=file:androidx/benchmark/ProfilerConfig.kt+class:androidx.benchmark.ProfilerConfig) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.2.0)

*** ** * ** ***


```
@ExperimentalBenchmarkConfigApi
public sealed class ProfilerConfig
```

<br />

Known direct subclasses [ProfilerConfig.MethodTracing](https://developer.android.com/reference/androidx/benchmark/ProfilerConfig.MethodTracing), [ProfilerConfig.StackSampling](https://developer.android.com/reference/androidx/benchmark/ProfilerConfig.StackSampling)

|---|---|
| `https://developer.android.com/reference/androidx/benchmark/ProfilerConfig.MethodTracing` |   |
| `https://developer.android.com/reference/androidx/benchmark/ProfilerConfig.StackSampling` |   |

*** ** * ** ***

Profiler configuration object.

Will eventually allow further configuration, e.g. sampling frequency.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/benchmark/ProfilerConfig.MethodTracing extends https://developer.android.com/reference/androidx/benchmark/ProfilerConfig` |
| `public final class https://developer.android.com/reference/androidx/benchmark/ProfilerConfig.StackSampling extends https://developer.android.com/reference/androidx/benchmark/ProfilerConfig` |

| ### Protected constructors |
|---|
| `https://developer.android.com/reference/androidx/benchmark/ProfilerConfig#ProfilerConfig(androidx.benchmark.Profiler)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/benchmark/Profiler profiler)` |

## Protected constructors

### ProfilerConfig

```
protected ProfilerConfig(@NonNull Profiler profiler)
```