/usr/local/lib/node_modules/pm2/node_modules/tx2/src/utils/probes
NameSizeModeActions
BinaryHeap.js31760644editdlrm
Counter.js4490644editdlrm
EDS.js29750644editdlrm
EWMA.js9220644editdlrm
Histogram.js46050644editdlrm
Meter.js6460644editdlrm
units.js4070644editdlrm
Edit: /usr/local/lib/node_modules/pm2/node_modules/tx2/src/utils/probes/Counter.js (449B)
module.exports = Counter; function Counter(opts) { opts = opts || {}; this._count = opts.count || 0; } Counter.prototype.val = function() { return this._count; }; Counter.prototype.inc = function(n) { const incBy = n == null ? 1 : n this._count += incBy; }; Counter.prototype.dec = function(n) { const decBy = n == null ? 1 : n this._count -= decBy; }; Counter.prototype.reset = function(count) { this._count = count || 0; };