- Use
-XX:+CITime
. The-XX:-CITime
in documentation means that this flag is disabled by default. Try using it with-server -XX:+PrintCompilation
flags - the standard output (System.out)
- sample output:
Accumulated compiler times (for compiled methods only) ------------------------------------------------ Total compilation time : 0.179 s Standard compilation : 0.128 s, Average : 0.004 On stack replacement : 0.047 s, Average : 0.024