@Override
  public void bindTo(AbstractMetricService metricService) {
    CompilationMXBean compilationBean = ManagementFactory.getCompilationMXBean();
    if (compilationBean != null && compilationBean.isCompilationTimeMonitoringSupported()) {
      metricService.createAutoGauge(
          SystemMetric.JVM_COMPILATION_TIME_MS.toString(),
          MetricLevel.IMPORTANT,
          compilationBean,
          CompilationMXBean::getTotalCompilationTime,
          SystemTag.COMPILER.toString(),
          compilationBean.getName());
    }
  }
This file is modified from io.micrometer.core.instrument.binder.jvm.JvmCompilationMetrics
iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/jvm/JvmCompileMetrics.java