Warning: session_start(): open(/var/lib/php/sessions/sess_d34nhacgl650va74u25mbhe2nk, 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
cmodule SaveStackTracesIfHighCPUUse > DynPrintLogAndEnabled {
double period = 10.0;
transient WaitForStableValue high;
start {
high = WaitForStableValue(period);
doEvery(2.0, r check);
}
void check enter {
if (dm_osLoading()) ret;
int load = iround(dm_processCPUPercentageRelativeToAllCores());
high.set(load >= 50);
if (high!) {
time {
S traces = renderAllThreadsWithStackTraces();
programLog(traces);
}
done_always("CPU load: " + load + "%, saving stack trace");
high.set(false); // wait another 10 seconds
}
}
}