🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@risingstack/event-loop-stats

Package Overview
Dependencies
Maintainers
10
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@risingstack/event-loop-stats

Exposes stats about the libuv default loop

1.0.8
beta
latest
Source
npm
Version published
Weekly downloads
119
133.33%
Maintainers
10
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 04 Aug 2017

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