Is there a way to remote start a CPU profiler (and specify package exclusions) like you can with the VisualVM tool (through I assume JMX).
We want to be able to automatically start a server run a stress test with a specific CPU profiler configuration enabled, and then export the results. Also is there any library that would allow you to parse the binary CPU profiler output (.nps file).
I think my best bet would be to dig through the VisualVM source code and see how they're doing it and copy that.
It appears that VisualVM uses some Netbeans library to do the parsing of the CPU profiler: * org.netbeans.lib.profiler.results.cpu.StackTraceSnapshotBuilder