!7 cmodule GCNotification > DynPrintLog { start { ownResource(onGC(voidfunc(GarbageCollectionNotificationInfo info) enter { dm_q(r { printInfo(info) }) })); } void printInfo(GarbageCollectionNotificationInfo info) { print(); GcInfo gcInfo = info.getGcInfo(); print("GC @ " + localDateWithSeconds()); print(); print(" GC cause: " + info.getGcCause() + " (" + gcInfo.getDuration() + " ms)"); print(" Collector: " + info.getGcName()); //print(" Action: " + info.getGcAction()); print(" Changes: " + gcRenderChangesInUsedMemory(gcInfo)); print(); } }