Question

I know that yourkit can easily be integrated into Eclipse and you can start the program "Profile As" and it automatically connects to the Yourkit API and stats analyzing. This always runs the program and profiles it.

Now, If i have to do it in the debug mode. Is there a way to do that?

Was it helpful?

Solution

If you want to enable profiling in debug mode, you need to manually add -agentpath option to JVM arguments in Eclipse run configuration. Please find details here http://www.yourkit.com/docs/11/help/agent.jsp

Note, that it's not very safe to user debugger and profiler agents together. For example, debugger might suspend profiler internal thread and profiler UI will not be able to communicate with profiler agent. It's not critical but please take it into account.

Disclaimer: I'm a YourKit developer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top