Profiling Gradle Projects

How can I profile Gradle projects in Netbeans? I looked in several places, but they turned out to be dead ends. The profile button is also disabled in the Netbeans editor when using a Gradle project.


source to share

2 answers

Run your application and use the profiler feature to connect to the running JVM - Profiler | Attach Profiler

in the main menu.

In the past, it was necessary to add some flags to your application to load special hooks used by the profiler, but it seems that this is no longer required for pages like



There is another tool -agnostic way of profiling Gradle projects using gradle-profiler. ... It is a standalone CLI tool that runs your build with given parameters (tasks, cleanups, warmups, different versions of Gradle - everything is customizable) and generates performance reports.



All Articles