I currently have some Java code that I would like to profile. I decided to use Java Mission Control after reading some promising things about it. However, every resource I've consulted so far tells me to first start the process I want to profile first, and only then "attach" or profile the code from Mission Control once it is already running (for example this video from oracle: https://youtu.be/WMEpRUgp9Y4?t=14m56s).
Is there a way to start the process with profiling from the start? Thanks
There is a way to start a profiling recording when you start the process.
Example: Running a profiling recording for 10 minutes.
See my article for more details: Using Java Flight Recorder