diff --git a/src/node_process.cc b/src/node_process.cc index c223b482cf4dbd..51041c49eda71b 100644 --- a/src/node_process.cc +++ b/src/node_process.cc @@ -208,7 +208,7 @@ void MemoryUsage(const FunctionCallbackInfo& args) { fields[0] = rss; fields[1] = v8_heap_stats.total_heap_size(); fields[2] = v8_heap_stats.used_heap_size(); - fields[3] = isolate->AdjustAmountOfExternalAllocatedMemory(0); + fields[3] = v8_heap_stats.external_memory(); } // Most of the time, it's best to use `console.error` to write