To load the profiler dll with the JVM you need to specify "-Xrunjavaperf" in the options field of the JavaVMInitArgs structure when you load the JVM. (for call graph you need to specify "-Xrunjavaperf:cg")
I'll demonstrate it in C++ sample, but I guess it's the same for Delphi: #include
#define USER_CLASSPATH "." /* where Prog.class is */
Hi Haimc, Thanks for the reply. Putting "cg" in command line option is new to me. I will try this and share the experience. Can u please also tell me what is the command line option for sampling..? Regards, Prasad.