Skip to content

Commit 6211ffd

Browse files
PoojaDurgadtargos
authored andcommitted
doc: add require statement in the example
PR-URL: #35554 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Harshitha K P <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 7b3743d commit 6211ffd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/v8.md

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ Chrome DevTools. The JSON schema is undocumented and specific to the
102102
V8 engine, and may change from one version of V8 to the next.
103103

104104
```js
105+
// Print heap snapshot to the console
106+
const v8 = require('v8');
105107
const stream = v8.getHeapSnapshot();
106108
stream.pipe(process.stdout);
107109
```

0 commit comments

Comments
 (0)