android / performance-samples

Samples to show APIs and best practices in Performance on Android
https://d.android.com/topic/performance/overview
Apache License 2.0
1.27k stars 214 forks source link

Question about the difference in file size inside the aab depending on the location of the generated baseline-prof.txt file #262

Closed Veronikapj closed 1 month ago

Veronikapj commented 11 months ago
  1. In the case of creating app-release.aab from the existing location of the sample baselineProfiles in release/generated/baselineProfiles baseline.prof size is 5.9k image

  2. In the case of creating app-release.aab after moving the same file to main/generated/baselineProfiles baseline.prof size is 4.8k image

  3. In the case of automatically generating the baseline profile file with the following option settings and including it when creating the aab The size of baseline.prof is 4.8k, which is the same size as when the file is placed in the main/generated/baselineProfiles directory.

baselineProfile {
  variants {
    release {
      automaticGenerationDuringBuild = true
    }
  }
}

Even though it is the same baseline-prof.txt, the size of the converted baseline.prof inside the aab is different, with 5.9k for release and 4.8k for the case included in main. I am curious about the reason for this difference. And where should I put the generated baseline-prof.txt file to use in my service?

keyboardsurfer commented 1 month ago

This issue is considered stale. If the problem persists, please file a new issue with the missing information and link back to this issue.