Search in sources :

Example 1 with ComponentVisitor

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));
        }
    }
}
Also used : ComponentVisitor(org.sonar.ce.task.projectanalysis.component.ComponentVisitor)

Aggregations

ComponentVisitor (org.sonar.ce.task.projectanalysis.component.ComponentVisitor)1