1# JSVM_HeapStatistics 2 3 4## Overview 5 6Heap statistics struct, which is used to store statistics about JavaScript heap memory usage. 7 8**Since**: 12 9 10**Related module**: [JSVM](_j_s_v_m.md) 11 12 13## Summary 14 15 16### Member Variables 17 18| Name| Description| 19| -------- | -------- | 20| size_t [totalHeapSize](#totalheapsize) | Total heap size, in KB. | 21| size_t [totalHeapSizeExecutable](#totalheapsizeexecutable) | Total size of the executable heap, in KB. | 22| size_t [totalPhysicalSize](#totalphysicalsize) | Total physical memory size, in KB. | 23| size_t [totalAvailableSize](#totalavailablesize) | Total available memory size, in KB. | 24| size_t [usedHeapSize](#usedheapsize) | Used heap size, in KB. | 25| size_t [heapSizeLimit](#heapsizelimit) | Heap size limit, in KB. | 26| size_t [mallocedMemory](#mallocedmemory) | Allocated memory size, in KB. | 27| size_t [externalMemory](#externalmemory) | External memory size, in KB. | 28| size_t [peakMallocedMemory](#peakmallocedmemory) | Maximum size of the memory that can be allocated, in KB. | 29| size_t [numberOfNativeContexts](#numberofnativecontexts) | Number of active native contexts. If the value keeps increasing, memory leaks may occur. | 30| size_t [numberOfDetachedContexts](#numberofdetachedcontexts) | Number of detached contexts. | 31| size_t [totalGlobalHandlesSize](#totalglobalhandlessize) | Total size of global handles, in KB. | 32| size_t [usedGlobalHandlesSize](#usedglobalhandlessize) | Size of the used global handles, in KB. | 33 34 35## Member Variable Description 36 37 38### externalMemory 39 40``` 41size_t JSVM_HeapStatistics::externalMemory 42``` 43**Description** 44External memory size, in KB. 45 46 47### heapSizeLimit 48 49``` 50size_t JSVM_HeapStatistics::heapSizeLimit 51``` 52**Description** 53Heap size limit, in KB. 54 55 56### mallocedMemory 57 58``` 59size_t JSVM_HeapStatistics::mallocedMemory 60``` 61**Description** 62Allocated memory size, in KB. 63 64 65### numberOfDetachedContexts 66 67``` 68size_t JSVM_HeapStatistics::numberOfDetachedContexts 69``` 70**Description** 71Number of detached contexts. 72 73 74### numberOfNativeContexts 75 76``` 77size_t JSVM_HeapStatistics::numberOfNativeContexts 78``` 79**Description** 80Number of active native contexts. If the value keeps increasing, memory leaks may occur. 81 82 83### peakMallocedMemory 84 85``` 86size_t JSVM_HeapStatistics::peakMallocedMemory 87``` 88**Description** 89Maximum size of the memory that can be allocated, in KB. 90 91 92### totalAvailableSize 93 94``` 95size_t JSVM_HeapStatistics::totalAvailableSize 96``` 97**Description** 98Total available memory size, in KB. 99 100 101### totalGlobalHandlesSize 102 103``` 104size_t JSVM_HeapStatistics::totalGlobalHandlesSize 105``` 106**Description** 107Total size of global handles, in KB. 108 109 110### totalHeapSize 111 112``` 113size_t JSVM_HeapStatistics::totalHeapSize 114``` 115**Description** 116Total heap size, in KB. 117 118 119### totalHeapSizeExecutable 120 121``` 122size_t JSVM_HeapStatistics::totalHeapSizeExecutable 123``` 124**Description** 125Total size of the executable heap, in KB. 126 127 128### totalPhysicalSize 129 130``` 131size_t JSVM_HeapStatistics::totalPhysicalSize 132``` 133**Description** 134Total physical memory size, in KB. 135 136 137### usedGlobalHandlesSize 138 139``` 140size_t JSVM_HeapStatistics::usedGlobalHandlesSize 141``` 142**Description** 143Size of the used global handles, in KB. 144 145 146### usedHeapSize 147 148``` 149size_t JSVM_HeapStatistics::usedHeapSize 150``` 151**Description** 152Used heap size, in KB. 153