Skip to content

Commit

Permalink
Move baseline profile to from app/src/main to `app/src/main/baselin…
Browse files Browse the repository at this point in the history
…eProfiles`

to avoid duplicating them.
DEX layout optimization looks at `baselineProfiles` sourceSet by default, and this prevents manually configuring the `R8Task`.
  • Loading branch information
SimonMarquis committed Nov 6, 2023
1 parent 63e0e31 commit 47ec527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ in the `benchmarks` module. This module also contains the test to generate the B

## Baseline profiles

The baseline profile for this app is located at [`app/src/main/baseline-prof.txt`](app/src/main/baseline-prof.txt).
The baseline profile for this app is located at [`app/src/main/baselineProfiles/baseline-prof.txt`](app/src/main/baselineProfiles/baseline-prof.txt).
It contains rules that enable AOT compilation of the critical user path taken during app launch.
For more information on baseline profiles, read [this document](https://developer.android.com/studio/profile/baselineprofiles).

Expand All @@ -152,7 +152,7 @@ For more information on baseline profiles, read [this document](https://develope
To generate the baseline profile, select the `benchmark` build variant and run the
`BaselineProfileGenerator` benchmark test on an AOSP Android Emulator.
Then copy the resulting baseline profile from the emulator to [`app/src/main/baseline-prof.txt`](app/src/main/baseline-prof.txt).
Then copy the resulting baseline profile from the emulator to [`app/src/main/baselineProfiles/baseline-prof.txt`](app/src/main/baselineProfiles/baseline-prof.txt).

## Compose compiler metrics

Expand Down
File renamed without changes.

0 comments on commit 47ec527

Please sign in to comment.