Always start CPU profiling with asynchronous sampling

Questions about YourKit Java Profiler
Post Reply
mcatena
Posts: 2
Joined: Wed Apr 19, 2023 10:12 am

Always start CPU profiling with asynchronous sampling

Post by mcatena »

As per title. Is there a way to always start CPU profiling using asynchronous sampling?

I typically use yourkit from the intellij plugin. When I execute the code, the CPU profiling is always using default sampling. This means I have to stop the CPU profiling, select asynchronous sampling, and restart it. Which is not ideal.
pete23
Posts: 1
Joined: Wed Apr 19, 2023 12:27 pm

Re: Always start CPU profiling with asynchronous sampling

Post by pete23 »

The help for the Plugin is pretty clear on how to do this.

https://www.yourkit.com/docs/java/help/idea.jsp

tl;dr Open the Run/Debug Configurations dialog, Select the run configuration, IntelliJ IDEA 2020.3 and newer: Click the link Modify options and select the item Profile in the Startup/Connection section of the drop down list.
mcatena
Posts: 2
Joined: Wed Apr 19, 2023 10:12 am

Re: Always start CPU profiling with asynchronous sampling

Post by mcatena »

pete23 wrote: Wed Apr 19, 2023 12:30 pm The help for the Plugin is pretty clear on how to do this.

https://www.yourkit.com/docs/java/help/idea.jsp

tl;dr Open the Run/Debug Configurations dialog, Select the run configuration, IntelliJ IDEA 2020.3 and newer: Click the link Modify options and select the item Profile in the Startup/Connection section of the drop down list.
Thanks a lot, I completely missed this!
Post Reply