MemoryUsage
Memory usage statistics from the V8 JavaScript engine,
as reported by V8's HeapStatistics.
See
Properties
| Property | Type | Description |
|---|---|---|
externalMemory | number | Bytes of off-heap memory (e.g. ArrayBuffer backing stores) that V8 is keeping alive. A large value with a small usedHeapSize means native memory is held by not-yet-collected JS objects. |
heapSizeLimit | number | Maximum size the heap is allowed to grow to, in bytes. |
mallocedMemory | number | Memory currently allocated via the engine's malloc, in bytes. |
nativeHeapArena | number | Current size of the native allocator's arena, in bytes. |
nativeHeapFree | number | Bytes free within the native allocator's current arena. |
nativeHeapTotal | number | Total native (newlib) heap capacity of the process, in bytes. Every native allocation — the V8 heap, JIT code arena, render surfaces, worker thread stacks, ArrayBuffer backings — competes within this budget. |
nativeHeapUsed | number | Bytes currently allocated from the native heap. |
numberOfDetachedContexts | number | Number of detached (pending GC) contexts. |
numberOfNativeContexts | number | Number of active (native) contexts. |
peakMallocedMemory | number | Peak memory ever allocated via the engine's malloc, in bytes. |
totalAvailableSize | number | Total memory available to the heap before hitting the limit, in bytes. |
totalHeapSize | number | Total size of the V8 heap, in bytes. |
totalHeapSizeExecutable | number | Total size of executable (JIT code) portions of the heap, in bytes. |
totalPhysicalSize | number | Committed physical size of the heap, in bytes. |
usedHeapSize | number | Memory currently used by live objects on the heap, in bytes. |