Deoptimization statistics are already gathered in product builds but for some (probably historical) reasons aren't printed to the VM/Compiler log. These statics can be useful when analyzing the reasons for deoptimization and frequent recompilations.
Because the statistics are already collected anyway, printing them at VM-exit if either -XX:+LogCompilation or -XX:+LogVMOutput are set won't introduce any runtime overhead.
Because the statistics are already collected anyway, printing them at VM-exit if either -XX:+LogCompilation or -XX:+LogVMOutput are set won't introduce any runtime overhead.