SEGGER_SYSVIEW_HeapDefine() function
SEGGER_SYSVIEW_HeapDefine() Function description Define heap. Parameters pHeap - Pointer to heap control structure. pBase - Pointer to managed heap memory. HeapSize - Size of managed heap memory in bytes. MetadataSize - Size of metadata associated with each heap allocation. Additional information SystemView can track allocations across multiple heaps. HeapSize must be a multiple of the natural alignment unit of the target. This size is subject to compression, controlled by the specific setting of SEGGER_SYSVIEW_ID_SHIFT. MetadataSize defines the size of the per-allocation metadata. For many heap implementations, the metadata size is a multiple of the word size of the machine and typically contains the size of the allocated block (used upon deallocation), optional pointers to the preceding and/or following blocks, and optionally a tag identifying the owner of the block. Note that MetadataSize is not compressed within the SystemView packet and is not required to be a multiple of 1<<SEGGER_SYSVIEW_ID_SHIFT.
SEGGER_SYSVIEW_HeapDefine() calls 4 functions:
![]()
SEGGER_SYSVIEW_HeapDefine()
SEGGER_SYSVIEW_HeapDefine() reads 3 variables:
![]()
SEGGER_SYSVIEW_HeapDefine()