!7 lib 1009626 // oshi lib 1009055 lib 1009056 // jna lib 1004016 // slf4j lib 1009628 // threetenbp import oshi.*; import oshi.software.os.*; p { OperatingSystem os = new SystemInfo().getOperatingSystem(); OSProcess[] l = os.getProcesses(1000, null); print("Have " + n(l, "process") + ":\n"); pnl(map(l, func(OSProcess p) { p.getProcessID() + " [" + str_toM(os.getResidentSetSize() "] - " + p.getCommandLine() })); }