INNER CODE UNIT · JavaScript
memoryAttributed
3cqs-coder/SymBot · libs/app/Hub/Main.js:77
const memoryAttributed = (memData.heapUsed || 0) + (memData.external || 0) + (memData.arrayBuffers || 0);
let msgObj = {
'instanceId': workerInfo.instance.id,
'instanceName': instanceName,
'workerId': workerId,
'threadId': workerInfo.threadId,
'memoryUsage': {
'rss': memData.rss,
'heapTotal': memData.heapTotal,
'heapUsed': memData.heapUsed,
'external': memData.external || 0,
'arrayBuffers': memData.arrayBuffers || 0,
'attributed': memoryAttributed,
// Host CPU load (same for every instance on this host) — carried
// on the same channel so the Manage view can show it per row.
'loadAvg': memData.loadAvg || null,
'cpuCount': memData.cpuCount != null ? memData.cpuCount : null