Change profile output directory
Answered
When I profile my code using the IntelliJ profiler (or any of the other ones) it will save a .jfr (snapshot) or sometimes even a folder of output.
However, it saves all of these directly into my home folder, littering it with tens and hundreds of files I will need to go through and delete manually.
Where can I change the directory that these are saved in? I have looked through the settings but was unable to find an answer.
Please sign in to leave a comment.
At least for JFR you can override it by adding the following in Help | Edit Custom VM Options (IDE restart is required):
I actually found the solution by accident, hidden away.
Open Profiler tab and make sure it's empty (no Java process running) > Change Snapshot Folder.
I don't know why it's hidden in there and cannot be accessed from the setting. Would be nice to fix this. I hadn't seen it before since I only got the Profiler tab when I'm profiling something (i.e. a process is running). Or when I am viewing a snapshot from a run that just finished.