Use the eclipse launcher, and set a breakpoint at an appropriate place in the main method.
Then, start in debug mode, enable profiling in visualVM, and then resume using eclipse.
That won’t profile class loading and stuff, but it’s good enough for me.