!7 import com.sun.management.GcInfo; p { repeat with sleep 1 { List gcBeans = ManagementFactory.getGarbageCollectorMXBeans(); long count = 0; long timeMillis = 0; for (GarbageCollectorMXBean gcBean : gcBeans) { print("Collector: " + gcBean.getName()); GcInfo info = ((com.sun.management.GarbageCollectorMXBean) gcBean).getLastGcInfo(); if (info != null) pnlStructIndent(callAllMethodsInInterface(info, GcInfo.class)); print(); } } }