# ExperimentalConfig

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

*** ** * ** ***


```
@ExperimentalBenchmarkConfigApi
class ExperimentalConfig
```

<br />

*** ** * ** ***

Experimental configuration options for a benchmark.

Currently used to override the default `https://developer.android.com/reference/kotlin/androidx/benchmark/perfetto/PerfettoConfig`, enable Startup `https://developer.android.com/reference/kotlin/androidx/benchmark/traceprocessor/Insight`s, or configure memory heap profiling.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/benchmark/ExperimentalConfig#ExperimentalConfig(androidx.benchmark.perfetto.PerfettoConfig,androidx.benchmark.StartupInsightsConfig,androidx.benchmark.MemoryProfilingConfig)( perfettoConfig: https://developer.android.com/reference/kotlin/androidx/benchmark/perfetto/PerfettoConfig?, startupInsightsConfig: https://developer.android.com/reference/kotlin/androidx/benchmark/StartupInsightsConfig?, memoryProfilingConfig: https://developer.android.com/reference/kotlin/androidx/benchmark/MemoryProfilingConfig? )` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/benchmark/MemoryProfilingConfig?` | `https://developer.android.com/reference/kotlin/androidx/benchmark/ExperimentalConfig#memoryProfilingConfig()` The MemoryProfilingConfig for the benchmark - `null` to disable memory profiling. |
| `https://developer.android.com/reference/kotlin/androidx/benchmark/perfetto/PerfettoConfig?` | `https://developer.android.com/reference/kotlin/androidx/benchmark/ExperimentalConfig#perfettoConfig()` The PerfettoConfig for the benchmark - `null` to use the default config. |
| `https://developer.android.com/reference/kotlin/androidx/benchmark/StartupInsightsConfig?` | `https://developer.android.com/reference/kotlin/androidx/benchmark/ExperimentalConfig#startupInsightsConfig()` The StartupInsightsConfig for the benchmark - `null` to not enable insights reporting. |

## Public constructors

### ExperimentalConfig

Added in [1.6.0-alpha01](https://developer.android.com/jetpack/androidx/releases/benchmark#1.6.0-alpha01)

```
ExperimentalConfig(
    perfettoConfig: PerfettoConfig? = null,
    startupInsightsConfig: StartupInsightsConfig? = null,
    memoryProfilingConfig: MemoryProfilingConfig? = null
)
```

## Public properties

### memoryProfilingConfig

Added in [1.6.0-alpha01](https://developer.android.com/jetpack/androidx/releases/benchmark#1.6.0-alpha01)

```
val memoryProfilingConfig: MemoryProfilingConfig?
```

The MemoryProfilingConfig for the benchmark - `null` to disable memory profiling.

### perfettoConfig

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.4.0)

```
val perfettoConfig: PerfettoConfig?
```

The PerfettoConfig for the benchmark - `null` to use the default config.

### startupInsightsConfig

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.4.0)

```
val startupInsightsConfig: StartupInsightsConfig?
```

The StartupInsightsConfig for the benchmark - `null` to not enable insights reporting.