Package org.sonar.api.utils

Examples of org.sonar.api.utils.TimeProfiler.stop()


      report.succeed();
      for (ComputationStep step : stepRegistry.steps()) {
        TimeProfiler stepProfiler = new TimeProfiler(LOG).start(step.getDescription());
        step.execute(session, report, project);
        session.commit();
        stepProfiler.stop();
      }

    } catch (Exception exception) {
      report.fail();
      Throwables.propagate(exception);
View Full Code Here


        session.commit();
      }

    } finally {
      session.close();
      profiler.stop();
    }
  }

  private static void verifyLanguage(String language, List<RulesProfile> profiles) {
    if (profiles.isEmpty()) {
View Full Code Here

      }
    }

    activate(registeredDashboards);

    profiler.stop();
  }

  @Override
  public void stop() {
    // nothing to do
View Full Code Here

      removeActiveRulesOnStillExistingRepositories(session, activeRules, context);
      session.commit();

    } finally {
      session.close();
      profiler.stop();
    }

  }

  @Override
View Full Code Here

        insertDefaultTemplate(PermissionTemplateDto.DEFAULT.getName());
        setDefaultProperty(PermissionTemplateDto.DEFAULT.getKee());
      }
      registerInitialization();
    }
    profiler.stop();
  }

  private boolean hasExistingPermissionsConfig() {
    return settings.getString(DEFAULT_PROJECTS_TEMPLATE_PROPERTY) != null;
  }
View Full Code Here

    List<Metric> metricsToRegister = newArrayList();
    metricsToRegister.addAll(CoreMetrics.getMetrics());
    metricsToRegister.addAll(getMetricsRepositories());
    register(metricsToRegister);
    cleanAlerts();
    profiler.stop();
  }

  @VisibleForTesting
  List<Metric> getMetricsRepositories() {
    List<Metric> metricsToRegister = newArrayList();
View Full Code Here

  public void start() {
    TimeProfiler profiler = new TimeProfiler(LOGGER).start("Register technical debt model");
    if (dao.selectEnabledCharacteristics().isEmpty()) {
      debtModelBackup.reset();
    }
    profiler.stop();
  }

}
View Full Code Here

        Filter filter = template.createFilter();
        register(template.getName(), filter);
      }
    }

    profiler.stop();
  }

  private boolean shouldRegister(String filterName) {
    return loadedTemplateDao.countByTypeAndKey(LoadedTemplateDto.FILTER_TYPE, filterName) == 0;
  }
View Full Code Here

    loadInstalledPlugins();
    copyBundledPlugins();
    moveDownloadedPlugins();
    loadCorePlugins();
    deployPlugins();
    profiler.stop();
  }

  private void deleteTrash() {
    File trashDir = fs.getTrashPluginsDir();
    try {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.