views:

178

answers:

2

Hello

I want to be able to do some profiling to some app using the Netbeans Profiler API. I'm not intreseted in using Visual VM , but rather in programatically collecting data from the application[let's say CPU usage, and method execution times]. For instance, using CPU usage and hot methods. How to get that data and print it on console for instance?

Thank you!

+1  A: 

This was from Jiri Sedlacek - one of the VisualVM develpers:

There's nothing like 'Netbeans Profiler API', the profiler doesn't have any API for public usage. Neither VisualVM nor the NetBeans Profiler will help you with this

So that's it folks!

Flueras Bogdan
+1  A: 

JRockit Mission Control have according to new and noteworthy for the 3.1 release a public API that be used to subscribe to JMX-data and to establish connections to local/remote servers. See at the bottom of the page.

Kire Haglin
The only problem remains that JRockit Mission Control only works well with Oracle's JVM implementation.
Flueras Bogdan