Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/v8.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/v8.md b/doc/api/v8.md
index 2c4f956ff68..e0b2039264b 100644
--- a/doc/api/v8.md
+++ b/doc/api/v8.md
@@ -102,6 +102,8 @@ Chrome DevTools. The JSON schema is undocumented and specific to the
V8 engine, and may change from one version of V8 to the next.
```js
+// Print heap snapshot to the console
+const v8 = require('v8');
const stream = v8.getHeapSnapshot();
stream.pipe(process.stdout);
```