MCPcopy Index your code
hub / github.com/Unitech/pm2 / sysMetricsTask

Function sysMetricsTask

lib/Worker.js:165–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 // Host metrics collection (replaces the external pm2-sysmonit process).
164 // Enabled by default; disable with `pm2 set pm2:sysmonit false` + `pm2 update`.
165 var sysMetricsTask = function() {
166 try {
167 SysMetrics.collect(function(data) {
168 God.system_infos = data || {};
169 });
170 } catch (e) {
171 debug('[PM2][WORKER] SysMetrics collection failed: %s', e && e.message);
172 }
173 };
174
175 God.Worker.start = function() {
176 timer = setInterval(wrappedTasks, cst.WORKER_INTERVAL);

Callers 1

Worker.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…