Netbeans Profiler
To enable remote profiling for the TestNG unit tests, install the Netbeans
Profiler
, set the profiler path in your build.properties and pass -Dprofile.netbeans.enabled=true on the ant command line.
For example, to run the EJB tests with profiling enabled use
ant tests.ejb -Dprofile.netbeans.enabled=true
and remotely attach the Netbeans Profiler. If you want to profile the application inside your application server, you need to pass the Netbeans agent path to the application server. The Netbeans profiler wizard displays the correct command line argument (depending on your java version).