From e833a332619323993dacd1357351d86cc40a1008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Sat, 5 Jul 2025 01:05:58 -0500 Subject: [PATCH 1/2] src,lib: support path in `v8.writeHeapSnapshot` output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/nodejs/node/issues/58857 Signed-off-by: Juan José Arboleda --- doc/api/v8.md | 5 ++ lib/v8.js | 10 +++- src/heap_utils.cc | 54 +++++++++++++------ test/common/heap.js | 12 +++++ .../test-write-heapsnapshot-options.js | 24 ++++++++- 5 files changed, 85 insertions(+), 20 deletions(-) diff --git a/doc/api/v8.md b/doc/api/v8.md index 90f8a815d26898..9a3b59071f84c0 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -504,6 +504,9 @@ disk unless [`v8.stopCoverage()`][] is invoked before the process exits.