문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top