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:
authorYuriy Vasiyarov <yvasiyarov@ozon.travel>2019-05-30 16:41:03 +0300
committerRich Trott <rtrott@gmail.com>2019-07-30 21:36:51 +0300
commit21a7c695f0601ae10ccf6f6cdc9f35f56be2fe90 (patch)
treec6eb8e8c1d9905727e08b0f429e821c99b94b6ca /doc/api/v8.md
parent8be37663532ac364ef57eb33913ae4ece583077d (diff)
src: export v8.GetHeapCodeAndMetadataStatistics()
Export statistic provided by V8 through HeapCodeStatistics class and and GetHeapCodeAndMetadataStatistics function to v8 Node.js module PR-URL: https://github.com/nodejs/node/pull/27978 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api/v8.md')
-rw-r--r--doc/api/v8.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/api/v8.md b/doc/api/v8.md
index ab5950dda62..f5d3bf41848 100644
--- a/doc/api/v8.md
+++ b/doc/api/v8.md
@@ -166,6 +166,28 @@ being non-zero indicates a potential memory leak.
}
```
+## v8.getHeapCodeStatistics()
+<!-- YAML
+added: REPLACEME
+-->
+
+* Returns: {Object}
+
+Returns an object with the following properties:
+
+* `code_and_metadata_size` {number}
+* `bytecode_and_metadata_size` {number}
+* `external_script_source_size` {number}
+
+<!-- eslint-skip -->
+```js
+{
+ code_and_metadata_size: 212208,
+ bytecode_and_metadata_size: 161368,
+ external_script_source_size: 1410794
+}
+```
+
## v8.setFlagsFromString(flags)
<!-- YAML
added: v1.0.0