NodeJS event loop latency monitor
npm install event-loop-monitor --save
var monitor = ;// data event will fire every 4 secondsmonitor;monitor; // to start measuring// later...monitor; // to stop measuring
What does it mean?
In example above this means that in last 4 seconds 50% of events is "late" by 1025 microseconds (1.025ms), 90% is late by 1059 microseconds (1.059ms) and so on.
.unref() from scanning interval. From now on, module will hold process running, until
.stop() is called.