CompilationMode.Partial

@RequiresApi(value = 24)
class CompilationMode.Partial : CompilationMode


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(
    baselineProfileMode: BaselineProfileMode,
    warmupIterations: @IntRange(from = 0) Int
)

Public functions

open String

Public properties

BaselineProfileMode

Controls whether a Baseline Profile should be used to partially pre compile the app.

Int

If greater than 0, your macrobenchmark will run an extra warmupIterations times before compilation, to prepare

Public constructors

Partial

Added in 1.1.0
Partial(
    baselineProfileMode: BaselineProfileMode = BaselineProfileMode.Require,
    warmupIterations: @IntRange(from = 0) Int = 0
)

Public functions

toString

open fun toString(): String

Public properties

baselineProfileMode

Added in 1.1.0
val baselineProfileModeBaselineProfileMode

Controls whether a Baseline Profile should be used to partially pre compile the app.

Defaults to BaselineProfileMode.Require

warmupIterations

Added in 1.1.0
val warmupIterationsInt

If greater than 0, your macrobenchmark will run an extra warmupIterations times before compilation, to prepare