SYS/BIOS  7.00
Data Fields
HeapTrack_Tracker Struct Reference

Structure added to the end of each allocated block. More...

#include <ti/sysbios/heaps/HeapTrack.h>

Collaboration diagram for HeapTrack_Tracker:
Collaboration graph
[legend]

Data Fields

uintptr_t scribble
 
Queue_Elem queElem
 
size_t size
 
uint32_t tick
 
Task_Handle taskHandle
 

Detailed Description

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).

buf = Memory_alloc(heapHandle, MYSIZE, MYALIGN, &eb);

Internally, HeapTrack will make the following call (where size is MYSIZE, align is MYALIGN and obj is the HeapTrack handle).

block = Memory_alloc(obj->heap, size + sizeof(HeapTrack_Tracker), align, &eb);

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.

Field Documentation

§ scribble

uintptr_t HeapTrack_Tracker::scribble

§ queElem

Queue_Elem HeapTrack_Tracker::queElem

§ size

size_t HeapTrack_Tracker::size

§ tick

uint32_t HeapTrack_Tracker::tick

§ taskHandle

Task_Handle HeapTrack_Tracker::taskHandle

The documentation for this struct was generated from the following file:
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale