harmony 鸿蒙JSVM_HeapStatistics

2025-06-12 浏览 (1)

JSVM_HeapStatistics

Overview

Heap statistics struct, which is used to store statistics about JavaScript heap memory usage.

Since: 12

Related module: JSVM

Summary

Member Variables

NameDescription
size_t totalHeapSizeTotal heap size, in KB.
size_t totalHeapSizeExecutableTotal size of the executable heap, in KB.
size_t totalPhysicalSizeTotal physical memory size, in KB.
size_t totalAvailableSizeTotal available memory size, in KB.
size_t usedHeapSizeUsed heap size, in KB.
size_t heapSizeLimitHeap size limit, in KB.
size_t mallocedMemoryAllocated memory size, in KB.
size_t externalMemoryExternal memory size, in KB.
size_t peakMallocedMemoryMaximum size of the memory that can be allocated, in KB.
size_t numberOfNativeContextsNumber of active native contexts. If the value keeps increasing, memory leaks may occur.
size_t numberOfDetachedContextsNumber of detached contexts.
size_t totalGlobalHandlesSizeTotal size of global handles, in KB.
size_t usedGlobalHandlesSizeSize of the used global handles, in KB.

Member Variable Description

externalMemory

size_t JSVM_HeapStatistics::externalMemory

Description External memory size, in KB.

heapSizeLimit

size_t JSVM_HeapStatistics::heapSizeLimit

Description Heap size limit, in KB.

mallocedMemory

size_t JSVM_HeapStatistics::mallocedMemory

Description Allocated memory size, in KB.

numberOfDetachedContexts

size_t JSVM_HeapStatistics::numberOfDetachedContexts

Description Number of detached contexts.

numberOfNativeContexts

size_t JSVM_HeapStatistics::numberOfNativeContexts

Description Number of active native contexts. If the value keeps increasing, memory leaks may occur.

peakMallocedMemory

size_t JSVM_HeapStatistics::peakMallocedMemory

Description Maximum size of the memory that can be allocated, in KB.

totalAvailableSize

size_t JSVM_HeapStatistics::totalAvailableSize

Description Total available memory size, in KB.

totalGlobalHandlesSize

size_t JSVM_HeapStatistics::totalGlobalHandlesSize

Description Total size of global handles, in KB.

totalHeapSize

size_t JSVM_HeapStatistics::totalHeapSize

Description Total heap size, in KB.

totalHeapSizeExecutable

size_t JSVM_HeapStatistics::totalHeapSizeExecutable

Description Total size of the executable heap, in KB.

totalPhysicalSize

size_t JSVM_HeapStatistics::totalPhysicalSize

Description Total physical memory size, in KB.

usedGlobalHandlesSize

size_t JSVM_HeapStatistics::usedGlobalHandlesSize

Description Size of the used global handles, in KB.

usedHeapSize

size_t JSVM_HeapStatistics::usedHeapSize

Description Used heap size, in KB.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Common Capabilities

harmony 鸿蒙_j_s_v_m

harmony 鸿蒙JSVM_CallbackStruct

harmony 鸿蒙JSVM_CreateVMOptions

harmony 鸿蒙JSVM_ExtendedErrorInfo

harmony 鸿蒙JSVM_InitOptions

harmony 鸿蒙JSVM_PropertyDescriptor

harmony 鸿蒙JSVM_PropertyHandlerConfigurationStruct

harmony 鸿蒙JSVM_ScriptOrigin

harmony 鸿蒙JSVM_TypeTag

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/v3Og8K