/node-choke

Detects whether the Node.js Event Loop has choked and what caused it to choke.

Primary LanguageJavaScriptMIT LicenseMIT

node-choke

Detects whether the Node.js Event Loop has choked and what caused it to choke.

Installation

$ npm i node-choke

Example

const choke = require('node-choke');

choke((info) => {
  console.log(`Event Loop has choked for ${info.dt}ns, stack trace:`, info.stack);
});