I am not so interested in IDE integration because it doesn't tend to work for me. I do execute my java process through gradle on IntelliJ, but maybe I am changing so much configuration that it is not working.
I would be most comfortable being able set everything up in the command line (then I can configure gradle to use the correct command line arguments).
For my java process, I have:
Code: Select all
-agentpath:/Applications/YourKit-Java-Profiler-2022.9.app/Contents/Resources/bin/mac/libyjpagent.dylib=port=65050
However, what I really want is for the above step to be automated.
I saw this post: viewtopic.php?p=59076&hilit=gui#p59076
It said something about `-agentport=<port>` but I could not figure out how to use this. I tried running `profiler.sh -agenpath=<port>`. The GUI openned normally and did not automatically connect to the agent at that port.
I am no expert on profiler tools, so apologies if I am misunderstanding something.