We would like to use the JDK Flight Recorder to let our end users send us profiling data that we could analyze internally using JDK Mission Control. The only problem is that our code is obfuscated which makes stacktraces and events unreadable in i.e JMC.
Is there a way to extract all the events from a jfr file, call our own deobfuscation logic and then save the results to a new .jfr file using the same format as the JFR dumps? I know about the JFR parsing libraries and think I have the reading part under control, but I'm not sure how to serialize the events back to the JFR format.