Skip to content

Commit

Permalink
doc: move v8.getHeapCodeStatistics()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trott authored and BethGriggs committed Dec 15, 2020
1 parent 8ab7f25 commit 9470bf5
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions doc/api/v8.md
Expand Up @@ -32,6 +32,28 @@ v8.setFlagsFromString('--allow_natives_syntax');
console.log(v8.cachedDataVersionTag()); // 183726201
```

## `v8.getHeapCodeStatistics()`
<!-- YAML
added: v12.8.0
-->

* 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.getHeapSnapshot()`
<!-- YAML
added: v11.13.0
Expand Down Expand Up @@ -177,28 +199,6 @@ being non-zero indicates a potential memory leak.
}
```

## `v8.getHeapCodeStatistics()`
<!-- YAML
added: v12.8.0
-->

* 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
Expand Down

0 comments on commit 9470bf5

Please sign in to comment.