Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hornet-js-gc-monitor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hornet-js-gc-monitor

Adds garbage collector statistics object into the javascript process object

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

hornet-gc-monitor

Nodejs v8 garbage collector monitoring

This package is tested only with Node versions 0.10, 0.12 and 4.x

Note: This module currently works only on Linux operating systems.

GC statistics reporting

This module collects GC statistics and put them into a Javascript Object : Here is the list of data the module reports periodically:

  {
    "total": {
      "count": 10,
      "time": 47.908777
    },
    "scavenge": {
      "count": 8,
      "time": 41.046463,
      "maxtime": 7.650448
    },
    "marksweep": {
      "count": 2,
      "time": 6.862314,
      "maxtime": 6.859382
    }
  }

The object is stored into the "process" object with a customizable key (default: "gcMonitor").

Installation

With npm do:

npm install hornet-gc-monitor

Usage

var hornetGcMonitor = require("hornet-gc-monitor");

// start without argument > statistics available at : process.gcMonitor
hornetGcMonitor.start();
var gcStatistics = process.gcMonitor;

// or start with argument. ex: statistics available at process.customKey
hornetGcMonitor.start("customKey"); 
var gcStatistics = process.customKey;

FAQs

Package last updated on 23 Feb 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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc