!7 p { OSProcess process = null; repeat 5 { time "oshi_operatingSystem" { oshi_operatingSystem(); }} repeat 5 { time "oshi_currentProcess" { process = oshi_currentProcess(); }} while licensed { time "getResidentSetSize" { long size = process.getResidentSetSize(); } time "oshi_currentProcessResidentSize" { long actualSize = oshi_currentProcessResidentSize(); } print ((size == actualSize? "OK" : "DIFF " + (actualSize-size)) + " - " + actualSize); sleepSeconds(3); } }