Search code examples
javaapinetbeansprofiler

How to use the Netbeans Profiler programmatically?


I want to be able to do some profiling to some app using the Netbeans Profiler API. I'm not interested in using Visual VM , but rather in programmatically 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?


Solution

  • 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!