mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add process.getHeapStatistics() (#13183)
This commit is contained in:
committed by
Samuel Attard
parent
1b8790aeb2
commit
6ad0a22602
@@ -106,6 +106,22 @@ Returns [`CPUUsage`](structures/cpu-usage.md)
|
||||
|
||||
Returns [`IOCounters`](structures/io-counters.md)
|
||||
|
||||
### `process.getHeapStatistics()`
|
||||
|
||||
Returns `Object`:
|
||||
|
||||
* `totalHeapSize` Integer
|
||||
* `totalHeapSizeExecutable` Integer
|
||||
* `totalPhysicalSize` Integer
|
||||
* `totalAvailableSize` Integer
|
||||
* `usedHeapSize` Integer
|
||||
* `heapSizeLimit` Integer
|
||||
* `mallocedMemory` Integer
|
||||
* `peakMallocedMemory` Integer
|
||||
* `doesZapGarbage` Boolean
|
||||
|
||||
Returns an object with V8 heap statistics. Note that all statistics are reported in Kilobytes.
|
||||
|
||||
### `process.getProcessMemoryInfo()`
|
||||
|
||||
Returns `Object`:
|
||||
|
||||
Reference in New Issue
Block a user