./gradlew installDist
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/yourkit/bin/linux-x86-64/ \ YOURKIT_HOME=~/yourkit/ \ JAVA_HOME=/path/to/androidx/prebuilts/jdk/jdk17/linux-x86/ \ ./build/install/gradle-profiler/bin/gradle-profiler \ --profile yourkit \ --project-dir /path/to/androidx/frameworks/support/ \ --gradle-user-home my-gradle-user-home \ --scenario-file /path/to/androidx/frameworks/support/development/gradleProfiler/configuration.scenarios \ rerunDryRun
This will produce a .snapshot
file that you can open in YourKit profiler for analysis.