2.0.0 • Published 7 years ago
yet-another-event-loop-monitor v2.0.0
introduction
- Nodejs Event Loop Monitor
- unit is millisecond(ms)
Example
const { EventLoopMonitor } = require('./index')
const monitor = new EventLoopMonitor({
  sampleInterval: 5000
})
monitor.start()
monitor.on('data', function (stats) {
  console.log(stats)
  monitor.stop()
})