From 672315651d566c822d01897409999842ad4f05eb Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 28 Jan 2020 14:25:10 +0000 Subject: [PATCH] process: report ArrayBuffer memory in `memoryUsage()` Report memory allocations performed by the `ArrayBuffer::Allocator`. PR-URL: https://github.com/nodejs/node/pull/31550 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Gus Caplan Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Gireesh Punathil --- doc/api/process.md | 28 ++++++++++++++++++---------- lib/internal/process/per_thread.js | 5 +++-- src/api/environment.cc | 30 ++++++++++++++++++++++++++++-- src/node_internals.h | 20 ++++++++++++-------- src/node_process_methods.cc | 7 ++++++- test/parallel/test-memory-usage.js | 13 +++++++++++++ 6 files changed, 80 insertions(+), 23 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index 35962972d6cd4f..4ad724278b44e1 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1482,6 +1482,9 @@ is no entry script.