Making apps blazing fast with Baseline Profiles
summary
Claim: bundling a Baseline Profile cuts startup time (authors report ~30–40% faster) by preselecting methods for AOT so the JIT work is avoided. Generate profiles with Jetpack Macrobenchmark using collectBaselineProfile, save as baselineprof.txt, include androidx.profileinstaller so non‑Play installs apply rules. Baseline Profiles ship in the APK/App Bundle, work back to Android 7, and verify with Macrobenchmark measureRepeated (compare CompilationMode.None vs Partial) or inspect system traces for reduced JIT activity.
AI-written summary · about
chapters (6)
- 0:00Intro
- 0:36Baseline Profiles are ready
- 0:51How code execution evolved in Android
- 7:49What are Baseline Profiles
- 9:12Getting started with Baseline Profiles
- 14:40Verifying the benefits
related talks
28mMaking apps blazing fast with Baseline Profiles
34mMaking apps blazing fast with Baseline Profiles
40mMy Journey: Adding Baseline Profiles to a Production-Based Android App: Success or Failure?
40mMonitor App performance using Jetpack Benchmark
33mAndroid Benchmarking and other stories
33mAndroid Benchmarking and other stories
38mLow effort, High impact Android performance wins
29mWhat's new in app performance
