Gradle Profiler is a tool for gathering profiling and benchmarking information for Gradle builds. It automates repeated build scenarios and can drive profilers such as Java Flight Recorder.
sdk install gradleprofiler