!7 compact module OSSizeTrayIcon > DynPrintLog { S value; // size / 100 MB transient JLabel lbl; start { dm_addTrayIcon(lbl = dm_fieldLabel('value)); doEveryAndNow(10.0, r actualUpdate); } void actualUpdate { long mb = toM(oshi_currentProcessResidentSize()); setField(value := iceil_div(mb, 100 ); toolTip(lbl, "OS size in memory: " + mb + " MB"); } }