From 691ad72b469e7c556a9c6b7c20e0b82813f61e06 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 7 Nov 2020 09:33:37 -0800 Subject: [PATCH] doc: move v8.getHeapCodeStatistics() Move v8.getHeapCodeStatistics() to its alphabetic location in the docs. An effort to alphabetize all the entries met some resistance on the grounds that it put some things in an order that wasn't logical, but this one should be uncontroversial, I think. PR-URL: https://github.com/nodejs/node/pull/36027 Reviewed-By: Antoine du Hamel Reviewed-By: Benjamin Gruenbaum --- doc/api/v8.md | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/doc/api/v8.md b/doc/api/v8.md index eb76506f46be28..5dec224d359168 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -32,6 +32,28 @@ v8.setFlagsFromString('--allow_natives_syntax'); console.log(v8.cachedDataVersionTag()); // 183726201 ``` +## `v8.getHeapCodeStatistics()` + + +* Returns: {Object} + +Returns an object with the following properties: + +* `code_and_metadata_size` {number} +* `bytecode_and_metadata_size` {number} +* `external_script_source_size` {number} + + +```js +{ + code_and_metadata_size: 212208, + bytecode_and_metadata_size: 161368, + external_script_source_size: 1410794 +} +``` + ## `v8.getHeapSnapshot()` - -* Returns: {Object} - -Returns an object with the following properties: - -* `code_and_metadata_size` {number} -* `bytecode_and_metadata_size` {number} -* `external_script_source_size` {number} - - -```js -{ - code_and_metadata_size: 212208, - bytecode_and_metadata_size: 161368, - external_script_source_size: 1410794 -} -``` - ## `v8.setFlagsFromString(flags)`