Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Baseline Profiles

Baseline Profiles empower you to achieve faster code execution, boasting potential speed improvements of around 20-30% from the first launch. This is accomplished by delivering pre-compiled source code information, effectively bypassing interpretation and just-in-time (JIT) compilation steps when users launch your application.

When you integrate Baseline Profiles into your application, Android Runtime (ART) optimizes precise code pathways by utilizing the supplied source code profiles. These profiles consist of information regarding your classes and methods employed in Ahead-of-Time (AOT) compilation.

But it's tricky to generate baseline profiles depending on the benchmark and Baseline Profile plugin versions.

For the latest commit with Benchmark 1.2.0 stable, you should disable or remove some codes before running baseline profiles.

  1. Disabled R8 full mode on the gradle.properties:
android.enableR8.fullMode=false
  1. Delete the StartupBenchmark.kt file.

  2. Run the commandline below:

./gradlew generateBaselineProfile