generating-baseline-profiles
Generating Baseline Profiles — ship the AOT compilation hint list and prove it moved the needle
Baseline Profiles ship an AOT compilation hint list inside the APK so ART pre-compiles hot Compose code paths on install instead of relying on JIT during the first runs. Cited gains: roughly 30% faster cold startup and 40% smoother first-scroll on the journeys that were profiled. Compose ships unbundled from the platform, so every Compose UI app benefits — there is no version of Android where Compose is already AOT-compiled by the system image.
This skill is the measurement spine for the rest of the performance work. Profiles are generated
with BaselineProfileRule from androidx.benchmark:benchmark-macro-junit4 and measured with
MacrobenchmarkRule from the same artifact. Generation and measurement are two distinct @Test
files in a separate :baselineprofile module that AGP 8.2+ scaffolds via New Module → Baseline
Profile Generator.