Socket
Socket
Sign inDemoInstall

event-loop-stats

Package Overview
Dependencies
13
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    event-loop-stats

Exposes stats about the libuv default loop


Version published
Weekly downloads
34K
decreased by-4.48%
Maintainers
2
Created
Weekly downloads
 

Changelog

Source

1.4.1

  • Fix issues caused by uv_hrtime() returning a value that is greater than the max possible uint32 value.

Readme

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

FAQs

Last updated on 21 Jan 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc