SYS/BIOS
7.00
|
Structure added to the end of each allocated block. More...
#include <ti/sysbios/heaps/HeapTrack.h>
Data Fields | |
uintptr_t | scribble |
Queue_Elem | queElem |
size_t | size |
uint32_t | tick |
Task_Handle | taskHandle |
Structure added to the end of each allocated block.
When a block is allocated from a HeapTrack heap with a size, internally HeapTrack calls Memory_alloc on the configured heap. The value of sizeof(HeapTrack_Tracker) is added to the requested size.
For example, if the caller makes the following call (where heapHandle is an HeapTrack handle that has been converted to an IHeap_Handle).
Internally, HeapTrack will make the following call (where size is MYSIZE, align is MYALIGN and obj is the HeapTrack handle).
When using HeapTrack, depending on the actual heap, you might need to make adjustments to the heap (e.g. increase the blockSize if using a HeapBuf instance).
The HeapTrack module manages the contents of this structure and should not be directly accessing them.
uintptr_t HeapTrack_Tracker::scribble |
Queue_Elem HeapTrack_Tracker::queElem |
size_t HeapTrack_Tracker::size |
uint32_t HeapTrack_Tracker::tick |
Task_Handle HeapTrack_Tracker::taskHandle |