I have a Rust program that makes a local request, gets a response, and exits. Using the local profiler, I was not able to see any jfrs, even with tuning the capture duration to 1ms.
A workaround I had was to put a sleep before exiting, and I was able to see jfr events.
Is it possible to always generate a report before exiting?