Today you can set the system property jfr.save.generated.asm to write the bytecode generated by JFR to a file.
The mechanism has been broken for years without anybody noticing. I think it can be removed, especially since it's possible to specify -Xlog:jfr+system+bytecode to have it printed on standard out.
The mechanism has been broken for years without anybody noticing. I think it can be removed, especially since it's possible to specify -Xlog:jfr+system+bytecode to have it printed on standard out.