# StartupInsightsConfig

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.StartupInsightsConfig) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/benchmark#1.4.0)

*** ** * ** ***


```
@ExperimentalBenchmarkConfigApi
public final class StartupInsightsConfig
```

<br />

*** ** * ** ***

Configuration for Startup Insights.

By passing this object to a `MacrobenchmarkRule`, you can enable reporting of Startup `https://developer.android.com/reference/androidx/benchmark/traceprocessor/Insight`s - problems patterns discovered during your application startup.

c, as well in the Benchmark JSON output file.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/benchmark/StartupInsightsConfig#StartupInsightsConfig(kotlin.Boolean)(boolean isEnabled)` |

| ### Public methods |
|---|---|
| `final boolean` | `https://developer.android.com/reference/androidx/benchmark/StartupInsightsConfig#isEnabled()()` Set to true to enable reporting of Startup Insights. |

## Public constructors

### StartupInsightsConfig

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

```
public StartupInsightsConfig(boolean isEnabled)
```

## Public methods

### isEnabled

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

```
public final boolean isEnabled()
```

Set to true to enable reporting of Startup Insights.