void (ClassPath path, long started, String resourceName, Resource resource) { if (resource != null && recordLoadingInfo) { loadedClassNames.add(resource.getURL().getPath()); } if (started == 0 || !recordLoadingStats) { return; } doingTiming.set(null); long time = System.nanoTime() - started; long totalTime = ourTotalTime.addAndGet(time); int totalRequests = ourTotalRequests.incrementAndGet(); if (recordLoadingInfo) { if (time > 3000000L) { System.out.println(time / 1000000 + " ms for " + resourceName); } if (totalRequests % 10000 == 0) { System.out.println(path.getClass().getClassLoader() + ", requests:" + ourTotalRequests + ", time:" + (totalTime / 1000000) + "ms"); } } }