stats: add memoryUsageHeap value

pull/4657/head
John McLear 2021-01-16 19:36:00 +00:00 committed by GitHub
parent dda968e17d
commit c0d9881a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ exports.start = async () => {
// start up stats counting system // start up stats counting system
const stats = require('./stats'); const stats = require('./stats');
stats.gauge('memoryUsage', () => process.memoryUsage().rss); stats.gauge('memoryUsage', () => process.memoryUsage().rss);
stats.gauge('memoryUsageHeap', () => process.memoryUsage().heapUsed);
await util.promisify(npm.load)(); await util.promisify(npm.load)();