🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

event-loop-stats

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

event-loop-stats

Exposes stats about the libuv default loop

latest
Source
npmnpm
Version
1.4.1
Version published
Weekly downloads
51K
-8.8%
Maintainers
2
Weekly downloads
 
Created
Source

event-loop-stats

Exposes stats about the libuv default loop

Build Status

Installation

npm install --save event-loop-stats

Usage

var eventLoopStats = require('event-loop-stats');
console.log('Stats', eventLoopStats.sense());

This will print the following information:

Stats {
  max: 5,
  min: 0,
  sum: 10,
  num: 5
}

Property insights

  • max: Maximum number of milliseconds spent in a single loop since last sense call.
  • min: Minimum number of milliseconds spent in a single loop since last sense call.
  • sum: Total number of milliseconds spent in the loop since last sense call.
  • num: Total number of loops since last sense call.

Node version compatibility

event-loop-stats depends on C++ extensions which are compiled when the event-loop-stats module is installed. Compatibility information can be inspected via the Travis-CI build jobs.

Keywords

libuv

FAQs

Package last updated on 21 Jan 2022

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