blob: b6b3e16556becb06f6b4d992fce22ef0f5f60be2 [file] [log] [blame] [view]
# Profiling AndroidX Gradle configuration phase
1. Check out [gradle-profiler](https://github.com/gradle/gradle-profiler)
2. Build it with `./gradlew installDist`
3. Run the following:
```bash
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.