/** * {@inheritDoc} */ @Override public void gather() { // The timestamp is set in the {@link CompilationInformation#reset()} to avoid multiple // renewal. It will not be set on the first execution of // {@link CompilationInformation#gather()}, but shortly before. long totalCompilationTime = this.getRuntimeBean().getTotalCompilationTime(); this.compilationInformationData.incrementCount(); this.compilationInformationData.addTotalCompilationTime(totalCompilationTime); if (totalCompilationTime < this.compilationInformationData.getMinTotalCompilationTime()) { this.compilationInformationData.setMinTotalCompilationTime(totalCompilationTime); } else if (totalCompilationTime > this.compilationInformationData.getMaxTotalCompilationTime()) { this.compilationInformationData.setMaxTotalCompilationTime(totalCompilationTime); } }