!7 sclass ProcessResidentSize > DynBigNumber { start { setDescription("OS SIZE IN MEMORY"); ownTimer(doEveryAndNow(10000, r actualUpdate)); } void actualUpdate { //time "PRS" { // takes ~10 ms setValue(toM(oshi_currentProcessResidentSize()) + " MB"); //} } visualize { ret setToolTipText("Process ID: " + getProcessID(), componentPopupMenuItem(super.visualize(), "Garbage Collect", r { dm_gc(); actualUpdate(); })); } }