Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Add baseline-profile #257

Open
wants to merge 3 commits into
base: 4.0-dev
Choose a base branch
from
Open

Add baseline-profile #257

wants to merge 3 commits into from

Conversation

oxyroid
Copy link
Contributor

@oxyroid oxyroid commented Feb 10, 2024

Summary

  • Add BaselineProfileGenerator with Pixel5 Api31 AOSP system source image.
  • Add ExampleStartupBenchmark so that you can easy test the app startup performance with or without baseline-prof.txt.
  • Fix ignoring .idea folder because we need to store Gradle task configuration as project file.
  • New Gradle task to generate new baseline files before each new version is released.
  • Generate a baseline-prof.txt in my Xiaomi 11 Ultra smartphone.
  • I have tested the app startup performance with- and without- baseline, here is the result:
    photo_2024-02-10_16-40-46

Reference

https://developer.android.com/jetpack/compose/performance#use-baseline

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant