* Generates a snapshot of the current V8 heap * and returns a Readable Stream. * @param {{ * exposeInternals?: boolean, * exposeNumericValues?: boolean * }} [options] * @returns {import('./stream.js').Readable}
(options)
| 106 | * @returns {import('./stream.js').Readable} |
| 107 | */ |
| 108 | function getHeapSnapshot(options) { |
| 109 | const optionArray = getHeapSnapshotOptions(options); |
| 110 | const handle = createHeapSnapshotStream(optionArray); |
| 111 | assert(handle); |
| 112 | return new HeapSnapshotStream(handle); |
| 113 | } |
| 114 | |
| 115 | // We need to get the buffer from the binding at the callsite since |
| 116 | // it's re-initialized after deserialization. |
no test coverage detected
searching dependent graphs…