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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…