Use YourKit
masterYourKit is a commercial profiler. Integration is currently limited to sampling and instrumentation. Ensure the YOURKIT_HOME environment variable is set.
Available Profiler Modes:
--profile yourkit: Uses CPU sampling instrumentation by default.--profile yourkit-tracing: Switches to CPU tracing.--profile yourkit-heap: Switches to memory allocation profiling.
Note: All probes are disabled when using sampling or memory allocation profiling.
Configuration:
- The connection port (default
10021) can be overridden via the system propertyorg.gradle.profiler.yourkit.port.