public interface CompilationMXBean extends PlatformManagedObject
 Java虚拟机具有此接口的实现类的单个实例。 实现此接口的实例是MXBean ,可以通过调用ManagementFactory.getCompilationMXBean()方法或从platform MBeanServer方法获得。 
该ObjectName用于唯一识别的MXBean为MBeanServer中编译的系统是:
 
        java.lang:type=Compilation 
        
       可以通过调用PlatformManagedObject.getObjectName()方法获得。 
      ManagementFactory.getPlatformMXBeans(Class) , 
        JMX Specification. , 
        Ways to Access MXBeans 
       | Modifier and Type | Method and Description | 
|---|---|
| String | getName()
              返回即时(JIT)编译器的名称。 
             | 
| long | getTotalCompilationTime()
              返回在编译中花费的大概累积的经过时间(以毫秒为单位)。 
             | 
| boolean | isCompilationTimeMonitoringSupported()
              测试Java虚拟机是否支持对编译时间的监视。 
             | 
getObjectNameString getName()
boolean isCompilationTimeMonitoringSupported()
long getTotalCompilationTime()
 该方法可选地由平台支持。 Java虚拟机实现可能不支持编译时间监视。 isCompilationTimeMonitoringSupported()方法可用于确定Java虚拟机是否支持此操作。 
此值不表示Java虚拟机的性能级别,不适用于不同虚拟机实现的性能比较。 这些实现可能具有不同的定义和编译时间的不同测量。
UnsupportedOperationException - 如果Java虚拟机不支持此操作。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.