void () { System.out.println("----- TEST STATISTICS -----"); UsefulTestCase.logSetupTeardownCosts(); System.out.printf("##teamcity[buildStatisticValue key='ideaTests.appInstancesCreated' value='%d']%n", MockApplication.INSTANCES_CREATED); System.out.printf("##teamcity[buildStatisticValue key='ideaTests.projectInstancesCreated' value='%d']%n", TestProjectManagerKt.getTotalCreatedProjectsCount()); long totalGcTime = 0; for (GarbageCollectorMXBean mxBean : ManagementFactory.getGarbageCollectorMXBeans()) { totalGcTime += mxBean.getCollectionTime(); } System.out.printf("##teamcity[buildStatisticValue key='ideaTests.gcTimeMs' value='%d']%n", totalGcTime); System.out.printf("##teamcity[buildStatisticValue key='ideaTests.classesLoaded' value='%d']%n", ManagementFactory.getClassLoadingMXBean().getTotalLoadedClassCount()); }