prom-client
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -18,5 +18,9 @@ 'use strict'; | ||
return function() { | ||
var memUsage = process.memoryUsage(); | ||
heapSizeTotal.set(memUsage.heapTotal); | ||
heapSizeUsed.set(memUsage.heapUsed); | ||
// process.memoryUsage() can throw EMFILE errors, see #67 | ||
try { | ||
var memUsage = process.memoryUsage(); | ||
heapSizeTotal.set(memUsage.heapTotal); | ||
heapSizeUsed.set(memUsage.heapUsed); | ||
} catch (e) { | ||
} | ||
@@ -23,0 +27,0 @@ return { total: heapSizeTotal, used: heapSizeUsed }; |
{ | ||
"name": "prom-client", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Client for prometheus", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
68148
1620