public final class V8HeapStatistics
extends java.lang.Object
Constructor and Description |
---|
V8HeapStatistics(long doesZapGarbage,
long externalMemory,
long heapSizeLimit,
long mallocedMemory,
long numberOfDetachedContexts,
long numberOfNativeContexts,
long peakMallocedMemory,
long totalAvailableSize,
long totalGlobalHandlesSize,
long totalHeapSize,
long totalHeapSizeExecutable,
long totalPhysicalSize,
long usedGlobalHandlesSize,
long usedHeapSize)
Instantiates a new V8 heap statistics.
|
Modifier and Type | Method and Description |
---|---|
long |
getDoesZapGarbage()
Gets does zap garbage.
|
long |
getExternalMemory()
Gets external memory.
|
long |
getHeapSizeLimit()
Gets heap size limit.
|
long |
getMallocedMemory()
Gets malloced memory.
|
long |
getNumberOfDetachedContexts()
Gets number of detached contexts.
|
long |
getNumberOfNativeContexts()
Gets number of native contexts.
|
long |
getPeakMallocedMemory()
Gets peak malloced memory.
|
long |
getTotalAvailableSize()
Gets total available size.
|
long |
getTotalGlobalHandlesSize()
Gets total global handles size.
|
long |
getTotalHeapSize()
Gets total heap size.
|
long |
getTotalHeapSizeExecutable()
Gets total heap size executable.
|
long |
getTotalPhysicalSize()
Gets total physical size.
|
long |
getUsedGlobalHandlesSize()
Gets used global handles size.
|
long |
getUsedHeapSize()
Gets used heap size.
|
V8HeapStatistics |
minus(V8HeapStatistics v8HeapStatistics)
Minus the input V8 heap statistics to produce a diff.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean ignoreZero)
To string with zero value ignored or not.
|
public V8HeapStatistics(long doesZapGarbage, long externalMemory, long heapSizeLimit, long mallocedMemory, long numberOfDetachedContexts, long numberOfNativeContexts, long peakMallocedMemory, long totalAvailableSize, long totalGlobalHandlesSize, long totalHeapSize, long totalHeapSizeExecutable, long totalPhysicalSize, long usedGlobalHandlesSize, long usedHeapSize)
doesZapGarbage
- the does zap garbageexternalMemory
- the external memoryheapSizeLimit
- the heap size limitmallocedMemory
- the malloced memorynumberOfDetachedContexts
- the number of detached contextsnumberOfNativeContexts
- the number of native contextspeakMallocedMemory
- the peak malloced memorytotalAvailableSize
- the total available sizetotalGlobalHandlesSize
- the total global handles sizetotalHeapSize
- the total heap sizetotalHeapSizeExecutable
- the total heap size executabletotalPhysicalSize
- the total physical sizeusedGlobalHandlesSize
- the used global handles sizeusedHeapSize
- the used heap sizepublic long getDoesZapGarbage()
public long getExternalMemory()
public long getHeapSizeLimit()
public long getMallocedMemory()
public long getNumberOfDetachedContexts()
public long getNumberOfNativeContexts()
public long getPeakMallocedMemory()
public long getTotalAvailableSize()
public long getTotalGlobalHandlesSize()
public long getTotalHeapSize()
public long getTotalHeapSizeExecutable()
public long getTotalPhysicalSize()
public long getUsedGlobalHandlesSize()
public long getUsedHeapSize()
public V8HeapStatistics minus(V8HeapStatistics v8HeapStatistics)
v8HeapStatistics
- the V8 heap statisticspublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean ignoreZero)
ignoreZero
- ignore zero