Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Profiling Gradle Projects

How can I profile Gradle projects in Netbeans? I've looked in a few places, but they turned up dead ends. The profile button is also disabled in the Netbeans editor when using a Gradle project.

like image 495
Sarah Szabo Avatar asked May 10 '15 17:05

Sarah Szabo


1 Answers

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

like image 84
Radim Avatar answered Oct 13 '22 20:10

Radim