GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: move v8.getHeapCodeStatistics() · nodejs/node@923276c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • v8.md
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.