* Generates a snapshot of the current V8 heap * and writes it to a JSON file. * @param {string} [filename] * @param {{ * exposeInternals?: boolean, * exposeNumericValues?: boolean * }} [options] * @returns {string}
(filename, options)
| 89 | * @returns {string} |
| 90 | */ |
| 91 | function writeHeapSnapshot(filename, options) { |
| 92 | if (filename !== undefined) { |
| 93 | filename = getValidatedPath(filename); |
| 94 | } |
| 95 | const optionArray = getHeapSnapshotOptions(options); |
| 96 | return triggerHeapSnapshot(filename, optionArray); |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Generates a snapshot of the current V8 heap |
no test coverage detected
searching dependent graphs…