loadmill-monitor
Advanced tools
Comparing version 0.0.2 to 1.0.0
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
18961
246