if (resourceCalculator != null) {
initCpuCumulativeTime =
resourceCalculator.getProcResourceValues().getCumulativeCpuTime();
}
jmxThreadInfoTracker = new JMXThreadBasedMetrics();
jmxThreadInfoTracker.registerThreadToTask(
"MAIN_TASK", Thread.currentThread().getId());
this.initJvmCpuCumulativeTime =
jmxThreadInfoTracker.getCumulativeCPUTime();