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