Warning: session_start(): open(/var/lib/php/sessions/sess_56i2h2gt7gra0gbb67j2t75jbh, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sclass Process {
S processID, name, commandLine;
long residentSize;
double cpuUsage; // percent per core
static S _fieldOrder = "processID name commandLine residentSize cpuUsage";
}
module ProcessList > DynObjectTable {
start {
//set oshi_calcProcessCPUUsage_debug;
doEvery(1.0, 10.0, r actualUpdate);
itemToMap = func(Process p) -> Map { humanizeKeys(
applyFunctionToMapValue('cpuUsage, f iround_spacePercentSign,
applyFunctionToMapValue('residentSize, f str_toM,
objectToMap_honorFieldOrder(p)))) };
}
afterVisualize {
addRowSorter_desc(table, 3);
rowSorter_setComparators(table, 2, alphaNumComparator(), 3, alphaNumComparator(), 4, alphaNumComparator());
}
void actualUpdate enter {
setData(map(timed(func -> L { oshi_listProcesses() }), func(OSProcess p) -> Process {
nu(Process,
processID := str(p.getProcessID()),
name := p.getName(),
commandLine := p.getCommandLine(),
residentSize := p.getResidentSetSize(),
cpuUsage := oshi_calcProcessCPUUsage_v2(p))
}));
}
}