I am starting the flight recording in this way :
java -XX:StartFlightRecording=dumponexit=true,filename=/path/to/recorders/myrecording.jfr
I would like to have the file named with the timestamp of the moment of the dump, lets say I dump next day using jcmd, I would like the name something like /path/to/recorders/2021_09_14_myrecording.jfr
I have tried reading documentation I have not found anything useful. I might create a separate script that renames the file appending the timestamp using bash, but before wanted to ask here if there is any built-in feature in java to achieve this.