public List checkThresholds()

in base/src/main/java/org/apache/sling/performance/ReportLogger.java [426:442]


    public List<Failure> checkThresholds() throws ClassNotFoundException {
        PerformanceRecord referenceRecord = records.get(referenceMethod);
        if (referenceRecord == null) {
            return Collections.EMPTY_LIST;
        }
        DescriptiveStatistics referenceStatistics = referenceRecord.getStatistics();
        List<Failure> failures = new ArrayList<Failure>();
        for (String methodName : records.keySet()) {
            PerformanceRecord performanceRecord = records.get(methodName);
            String result = performanceRecord.checkThreshold(referenceStatistics);
            if (result != null) {
                failures.add(new Failure(Description.createTestDescription(Class.forName(className), methodName),
                        new Exception(result)));
            }
        }
        return failures;
    }