When the JVM logs the compilation/decompilation of the class of my program, does it log just before starting the compilation/decompilation or just after it has finished to compile/decompile?
I use -XX:+PrintCompilation
for asking JVM to log.
Thanks,
Romain
According to HotSpot sources PrintCompilation
prints a line just before starting the compilation of a method (see CompileBroker::invoke_compiler_on_method).
To issue additional compiler info after the compilation is finished, use
-XX:+UnlockDiagnosticVMOptions -XX:+PrintCompilation2
and/or
-XX:+UnlockDiagnosticVMOptions -XX:+TraceNMethodInstalls
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With