MCPcopy Index your code
hub / github.com/nodejs/node / getHeapSnapshotOptions

Function getHeapSnapshotOptions

lib/internal/heap_utils.js:32–41  ·  view source on GitHub ↗
(options = kEmptyObject)

Source from the content-addressed store, hash-verified

30const kHandle = Symbol('kHandle');
31
32function getHeapSnapshotOptions(options = kEmptyObject) {
33 validateObject(options, 'options');
34 const {
35 exposeInternals = false,
36 exposeNumericValues = false,
37 } = options;
38 validateBoolean(exposeInternals, 'options.exposeInternals');
39 validateBoolean(exposeNumericValues, 'options.exposeNumericValues');
40 return new Uint8Array([+exposeInternals, +exposeNumericValues]);
41}
42
43class HeapSnapshotStream extends Readable {
44 constructor(handle) {

Callers 3

writeHeapSnapshotFunction · 0.85
getHeapSnapshotFunction · 0.85
getHeapSnapshotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…