Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 923276c

Browse filesBrowse files
Trottdanielleadams
authored andcommitted
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: #36027 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent 6ac9c8f commit 923276c
Copy full SHA for 923276c

File tree

Expand file treeCollapse file tree

1 file changed

+22
-22
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+22
-22
lines changed
Open diff view settings
Collapse file

‎doc/api/v8.md‎

Copy file name to clipboardExpand all lines: doc/api/v8.md
+22-22Lines changed: 22 additions & 22 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,28 @@ v8.setFlagsFromString('--allow_natives_syntax');
3232
console.log(v8.cachedDataVersionTag()); // 183726201
3333
```
3434

35+
## `v8.getHeapCodeStatistics()`
36+
<!-- YAML
37+
added: v12.8.0
38+
-->
39+
40+
* Returns: {Object}
41+
42+
Returns an object with the following properties:
43+
44+
* `code_and_metadata_size` {number}
45+
* `bytecode_and_metadata_size` {number}
46+
* `external_script_source_size` {number}
47+
48+
<!-- eslint-skip -->
49+
```js
50+
{
51+
code_and_metadata_size: 212208,
52+
bytecode_and_metadata_size: 161368,
53+
external_script_source_size: 1410794
54+
}
55+
```
56+
3557
## `v8.getHeapSnapshot()`
3658
<!-- YAML
3759
added: v11.13.0
@@ -177,28 +199,6 @@ being non-zero indicates a potential memory leak.
177199
}
178200
```
179201

180-
## `v8.getHeapCodeStatistics()`
181-
<!-- YAML
182-
added: v12.8.0
183-
-->
184-
185-
* Returns: {Object}
186-
187-
Returns an object with the following properties:
188-
189-
* `code_and_metadata_size` {number}
190-
* `bytecode_and_metadata_size` {number}
191-
* `external_script_source_size` {number}
192-
193-
<!-- eslint-skip -->
194-
```js
195-
{
196-
code_and_metadata_size: 212208,
197-
bytecode_and_metadata_size: 161368,
198-
external_script_source_size: 1410794
199-
}
200-
```
201-
202202
## `v8.setFlagsFromString(flags)`
203203
<!-- YAML
204204
added: v1.0.0

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.