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

loadmill-monitor

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadmill-monitor - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0

16

lib/monitor.js

@@ -7,6 +7,5 @@ const WebSocket = require('ws');

const MB = 1024 * 1024;
const reopenDelay = 5000;
const minReportingDelay = 5000;
const monitorClientVersion = '0.0.1';
const monitorClientVersion = '1.0.0';

@@ -136,5 +135,5 @@ class Monitor {

uc = [],
tm = [],
hm = [],
uhm = [];
uhm = [],
rss = [];

@@ -149,7 +148,6 @@ samples.forEach(function (sample) {

const memoryUsage = sample.memoryUsage;
const totalMemory = memoryUsage.rss + (memoryUsage.external || 0);
tm.push(totalMemory / MB);
hm.push(memoryUsage.heapTotal / MB);
uhm.push(memoryUsage.heapUsed / MB);
rss.push(memoryUsage.rss);
hm.push(memoryUsage.heapTotal);
uhm.push(memoryUsage.heapUsed);

@@ -170,5 +168,5 @@ const cpuUsage = sample.cpuUsage;

uc,
tm,
hm,
uhm,
rss,
type: "samples"

@@ -175,0 +173,0 @@ };

{
"name": "loadmill-monitor",
"version": "0.0.2",
"version": "1.0.0",
"description": "Performance monitoring for Node.js",

@@ -5,0 +5,0 @@ "keywords": [

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