lagtime
v1.0.0
Published
measure event loop lag
Downloads
3
Readme
lagtime
measure event loop lag
Example
var lagtime = require("lagtime");
var setTimeout = require("timers").setTimeout
var lt = lagtime(function onLagChange(lagTime) {
// Log the event loop delay
console.log(lagTime);
});
setTimeout(funtion () {
lt.shutdown();
}, 10000);
Installation
npm install lagtime
Tests
npm test
Contributors
- Matt-Esch