CompilationMode.Partial
class CompilationMode.Partial : CompilationMode
| kotlin.Any | ||
| ↳ | androidx.benchmark.macro.CompilationMode | |
| ↳ | androidx.benchmark.macro.CompilationMode.Partial |
Partial ahead-of-time app compilation.
The default parameters for this mimic the default state of an app partially pre-compiled by the installer - such as via Google Play.
Either baselineProfileMode must be set to non-BaselineProfileMode.Disable, or warmupIterations must be set to a non-0 value.
Note: [baselineProfileMode] = [BaselineProfileMode.Require] is only supported for APKs that have the ProfileInstaller library included, and have been built by AGP 7.0+ to package the baseline profile in the APK.
Summary
Public constructors |
|---|
Partial( |
Public properties |
|
|---|---|
BaselineProfileMode |
Controls whether a Baseline Profile should be used to partially pre compile the app. |
@IntRange(from = 0) Int |
If greater than 0, your macrobenchmark will run an extra |
Public constructors
Partial
Partial(
baselineProfileMode: BaselineProfileMode = BaselineProfileMode.Require,
warmupIterations: @IntRange(from = 0) Int = 0
)
Public properties
baselineProfileMode
val baselineProfileMode: BaselineProfileMode
Controls whether a Baseline Profile should be used to partially pre compile the app.
Defaults to BaselineProfileMode.Require
| See also | |
|---|---|
BaselineProfileMode |
warmupIterations
val warmupIterations: @IntRange(from = 0) Int
If greater than 0, your macrobenchmark will run an extra warmupIterations times before compilation, to prepare