use of org.sonar.ce.task.projectanalysis.component.ComponentVisitor in project sonarqube by SonarSource.
the class ExecuteVisitorsStep method logVisitorExecutionDurations.
private static void logVisitorExecutionDurations(List<ComponentVisitor> visitors, VisitorsCrawler visitorsCrawler) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(" Execution time for each component visitor:");
Map<ComponentVisitor, Long> cumulativeDurations = visitorsCrawler.getCumulativeDurations();
for (ComponentVisitor visitor : visitors) {
LOGGER.debug(" - {} | time={}ms", visitor.getClass().getSimpleName(), cumulativeDurations.get(visitor));
}
}
}
Aggregations