Profiling Gradle Projects
Start your application and use profiler's ability to attach to running JVM - Profiler | Attach Profiler
in main menu.
In the past it was necessary to add some flags to your application to load special hooks used by profiler but it seems that this is no longer needed according to pages like http://wiki.netbeans.org/DynamicAttachDemo