stadiamaps / stadiamaps/ferrostar

Generate Android Baseline Profiler

Open
#756 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
419
Forks
81
Avg merge
6d 1h
Merged PRs (30d)
7

Description

**TL;DR**
Baseline Profiles is a compiler optimization technique that improves app performance by pre-compiling frequently executed code paths (hot paths) during app startup and runtime. Based on findings from Google and the Android community, applications implementing Baseline Profiles report:
- 30%+ faster startup times on average
- Significant reduction in UI jank during critical interactions
- Improved frame rates for scrolling and animations
- Better user experience on low-end devices

**Key Resources:**
- [Meta Engineering: Accelerating Android Apps with Baseline Profiles](https://engineering.fb.com/2025/10/01/android/accelerating-our-android-apps-with-baseline-profiles/)
- [Android Developer Guide: Baseline Profiles Overview](https://developer.android.com/topic/performance/baselineprofiles/overview)

**Consideration**
Due to the complexity of the navigation features and map rendered features, it's essential to generate the baseline profiler for the SDKs so that it will be able to help the compiler to improve the class and function traversal via AOT.

**High Level Plan for the Changes**
1. Add gradle convention plugin so that we can centralized baseline profiler logic
2. Add a script to check the diff between baseline and head commits.
3. Add gradle managed devices to run the baseline profiler

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.