Socket
Book a DemoInstallSign in
Socket

event-loop-monitor

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

event-loop-monitor

NodeJS event loop latency monitor

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
912
51.24%
Maintainers
1
Weekly downloads
 
Created
Source

node-event-loop-monitor

NodeJS event loop latency monitor

Installation

npm install event-loop-monitor --save

Usage

var monitor = require('event-loop-monitor');

// data event will fire every 4 seconds
monitor.on('data', function(latency) {
  console.log(latency); // { p50: 1026, p90: 1059, p95: 1076, p99: 1110, p100: 1260 }   
});

monitor.resume(); // to start measuring

// later...
monitor.stop(); // 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.

CHANGELOG

0.1.0

Removed .unref() from scanning interval. From now on, module will hold process running, until .stop() is called.

Keywords

eventloop

FAQs

Package last updated on 23 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.