@@ -67,16 +67,17 @@ following properties:
6767added: v11.13.0
6868changes:
6969 - version: REPLACEME
70- pr-url: REPLACEME
70+ pr-url: https://github.com/nodejs/node/pull/44989
7171 description: Support options to configure the heap snapshot.
7272-->
7373
7474* ` options ` {Object}
7575 * ` exposeInternals ` {boolean} If true, expose internals in the heap snapshot.
76+ ** Default:** ` false ` .
7677 * ` exposeNumericValues ` {boolean} If true, expose numeric values in
77- artificial fields.
78+ artificial fields. ** Default: ** ` false ` .
7879
79- * Returns: {stream.Readable} A Readable Stream containing the V8 heap snapshot
80+ * Returns: {stream.Readable} A Readable containing the V8 heap snapshot.
8081
8182Generates a snapshot of the current V8 heap and returns a Readable
8283Stream that may be used to read the JSON serialized representation.
@@ -310,7 +311,7 @@ changes:
310311 pr-url: https://github.com/nodejs/node/pull/42577
311312 description: Make the returned error codes consistent across all platforms.
312313 - version: REPLACEME
313- pr-url: REPLACEME
314+ pr-url: https://github.com/nodejs/node/pull/44989
314315 description: Support options to configure the heap snapshot.
315316-->
316317
@@ -320,7 +321,11 @@ changes:
320321 generated, where ` {pid} ` will be the PID of the Node.js process,
321322 ` {thread_id} ` will be ` 0 ` when ` writeHeapSnapshot() ` is called from
322323 the main Node.js thread or the id of a worker thread.
323- * ` options ` {Object} See [ ` v8.getHeapSnapshot() ` ] [ ] for more details.
324+ * ` options ` {Object}
325+ * ` exposeInternals ` {boolean} If true, expose internals in the heap snapshot.
326+ ** Default:** ` false ` .
327+ * ` exposeNumericValues ` {boolean} If true, expose numeric values in
328+ artificial fields. ** Default:** ` false ` .
324329* Returns: {string} The filename where the snapshot was saved.
325330
326331Generates a snapshot of the current V8 heap and writes it to a JSON
@@ -1075,7 +1080,6 @@ Returns true if the Node.js instance is run to build a snapshot.
10751080[ `serializer.transferArrayBuffer()` ] : #serializertransferarraybufferid-arraybuffer
10761081[ `serializer.writeRawBytes()` ] : #serializerwriterawbytesbuffer
10771082[ `settled` callback ] : #settledpromise
1078- [ `v8.getHeapSnapshot()` ] : #v8getheapsnapshot
10791083[ `v8.stopCoverage()` ] : #v8stopcoverage
10801084[ `v8.takeCoverage()` ] : #v8takecoverage
10811085[ `vm.Script` ] : vm.md#new-vmscriptcode-options
0 commit comments