feat: add process.getBlinkMemoryInfo() (#17762)
This commit is contained in:
parent
2dbd2c07e4
commit
a1226d75ff
6 changed files with 42 additions and 0 deletions
|
@ -15,6 +15,7 @@ In sandboxed renderers the `process` object contains only a subset of the APIs:
|
|||
- `hang()`
|
||||
- `getCreationTime()`
|
||||
- `getHeapStatistics()`
|
||||
- `getBlinkMemoryInfo()`
|
||||
- `getProcessMemoryInfo()`
|
||||
- `getSystemMemoryInfo()`
|
||||
- `getSystemVersion()`
|
||||
|
@ -170,6 +171,18 @@ Returns `Object`:
|
|||
|
||||
Returns an object with V8 heap statistics. Note that all statistics are reported in Kilobytes.
|
||||
|
||||
### `process.getBlinkMemoryInfo()`
|
||||
|
||||
Returns `Object`:
|
||||
|
||||
* `allocated` Integer - Size of all allocated objects in Kilobytes.
|
||||
* `marked` Integer - Size of all marked objects in Kilobytes.
|
||||
* `total` Integer - Total allocated space in Kilobytes.
|
||||
|
||||
Returns an object with Blink memory information.
|
||||
It can be useful for debugging rendering / DOM related memory issues.
|
||||
Note that all values are reported in Kilobytes.
|
||||
|
||||
### `process.getProcessMemoryInfo()`
|
||||
|
||||
Returns `Promise<ProcessMemoryInfo>` - Resolves with a [ProcessMemoryInfo](structures/process-memory-info.md)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue