Profiling your Eclipse RCP application using YourKit Java Profiler
You need to follow the YourKit instructions for making sure the the appropriate extensions are in your operating systems path
Then you need to run your Eclipse RCP application with the following command line
YourRCPApplication.exe -vmargs -agentlib:yjpagent -Xmx1024M -Xms32M
If it flickers up and disappears again in a split second then you’ve either mucked up the command line or the agent extension can’t be found.
Test the sanity of your jre by running
java -agentlib:yjpagent
You should get this output:
E:\temp>java -agentlib:yjpagent [YourKit Java Profiler 7.5.10] Using JVMTI (11.0-b15;Sun Microsystems Inc.;mixed mode, sharing;Windows;32 bit JVM) [YourKit Java Profiler 7.5.10] Profiler agent is listening on port 10002… [YourKit Java Profiler 7.5.10] *** HINT ***: To get profiling results, connect to the application from the profiler UI Usage: java [-options] class [args...] <snip>
Thursday, October 30th, 2008 @ 2:38 pm