# 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
public final class ExperimentalConfig
```

<br />

*** ** * ** ***

Experimental configuration options for a benchmark.

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

## Summary

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

| ### Public methods |
|---|---|
| `final https://developer.android.com/reference/androidx/benchmark/MemoryProfilingConfig` | `https://developer.android.com/reference/androidx/benchmark/ExperimentalConfig#getMemoryProfilingConfig()()` The MemoryProfilingConfig for the benchmark - `null` to disable memory profiling. |
| `final https://developer.android.com/reference/androidx/benchmark/perfetto/PerfettoConfig` | `https://developer.android.com/reference/androidx/benchmark/ExperimentalConfig#getPerfettoConfig()()` The PerfettoConfig for the benchmark - `null` to use the default config. |
| `final https://developer.android.com/reference/androidx/benchmark/StartupInsightsConfig` | `https://developer.android.com/reference/androidx/benchmark/ExperimentalConfig#getStartupInsightsConfig()()` 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)

```
public ExperimentalConfig(
    PerfettoConfig perfettoConfig,
    StartupInsightsConfig startupInsightsConfig,
    MemoryProfilingConfig memoryProfilingConfig
)
```

## Public methods

### getMemoryProfilingConfig

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

```
public final MemoryProfilingConfig getMemoryProfilingConfig()
```

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

### getPerfettoConfig

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

```
public final PerfettoConfig getPerfettoConfig()
```

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

### getStartupInsightsConfig

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

```
public final StartupInsightsConfig getStartupInsightsConfig()
```

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