Skip to content

Commit 0d67649

Browse files
committed
doc: add require statement in the example
1 parent ee5f849 commit 0d67649

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/v8.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ Chrome DevTools. The JSON schema is undocumented and specific to the
104104
V8 engine, and may change from one version of V8 to the next.
105105

106106
```js
107+
// Print heap snapshot to the console
108+
const v8 = require('v8');
107109
const stream = v8.getHeapSnapshot();
108110
stream.pipe(process.stdout);
109111
```

0 commit comments

Comments
 (0)