性能话题>CITime 参数讨论专区>

CITime 参数讨论专区

欢迎来到 JVM 参数CITime的讨论专区

参数名称

CITime

取值类型

boolean

参数说明

collect timing information for compilation

用法及建议

  • 你可以通过-XX:+CITime开启,或者-XX:-CITime关闭

默认值

平台/版本 JDK6 JDK7 JDK8
Linux false false false
MacOS false false false
Windows false false false

关于该参数的使用,您有什么心得体会或者疑问吗?欢迎在下方参与讨论 ↓

5501 阅读
请先登录,再评论
$ java -XX:+CITime Main
Hello World!


Accumulated compiler times (for compiled methods only)
------------------------------------------------
  Total compilation time   :  0.006 s
    Standard compilation   :  0.006 s, Average : 0.000
    On stack replacement   :  0.000 s, Average : -1.#IO
    Detailed C1 Timings
       Setup time:         0.000 s ( 0.0%)
       Build IR:           0.002 s (39.1%)
         Optimize:            0.000 s ( 2.3%)
         RCE:                 0.000 s ( 1.1%)
       Emit LIR:           0.002 s (38.1%)
         LIR Gen:           0.000 s ( 9.5%)
         Linear Scan:       0.001 s (27.9%)
       LIR Schedule:       0.000 s ( 0.0%)
       Code Emission:      0.001 s (15.2%)
       Code Installation:  0.000 s ( 7.6%)
       Instruction Nodes:    801 nodes

  Total compiled methods   :     26 methods
    Standard compilation   :     26 methods
    On stack replacement   :      0 methods
  Total compiled bytecodes :   1076 bytes
    Standard compilation   :   1076 bytes
    On stack replacement   :      0 bytes
  Average compilation speed: 168035 bytes/s

  nmethod code size        :  16160 bytes
  nmethod total size       :  27448 bytes


JVM终止后输出编译统计信息

12年前