Percepio Trace Recorder
v4.6.6
|
Macros | |
#define | xTraceHeapGetCurrent(xHeapHandle, puxCurrent) xTraceEntryGetState(xHeapHandle, TRC_HEAP_STATE_INDEX_CURRENT, puxCurrent) |
Gets trace heap current allocation size. More... | |
#define | xTraceHeapSetCurrent(xHeapHandle, uxCurrent) xTraceEntrySetState(xHeapHandle, TRC_HEAP_STATE_INDEX_CURRENT, uxCurrent) |
Sets trace heap current allocation size. More... | |
#define | xTraceHeapGetHighWaterMark(xHeapHandle, puxHighWaterMark) xTraceEntryGetState(xHeapHandle, TRC_HEAP_STATE_INDEX_HIGHWATERMARK, puxHighWaterMark) |
Gets trace heap high water mark. More... | |
#define | xTraceHeapSetHighWaterMark(xHeapHandle, uxHighWaterMark) xTraceEntrySetState(xHeapHandle, TRC_HEAP_STATE_INDEX_HIGHWATERMARK, uxHighWaterMark) |
Sets trace heap high water mark. More... | |
#define | xTraceHeapGetMax(xHeapHandle, puxMax) xTraceEntryGetState(xHeapHandle, TRC_HEAP_STATE_INDEX_MAX, puxMax) |
Gets trace heap max size. More... | |
#define | xTraceHeapSetMax(xHeapHandle, uxMax) xTraceEntrySetState(xHeapHandle, TRC_HEAP_STATE_INDEX_MAX, uxMax) |
Sets trace heap max size. More... | |
Functions | |
traceResult | xTraceHeapCreate (const char *szName, TraceUnsignedBaseType_t uxCurrent, TraceUnsignedBaseType_t uxHighWaterMark, TraceUnsignedBaseType_t uxMax, TraceHeapHandle_t *pxHeapHandle) |
Creates trace heap. More... | |
traceResult | xTraceHeapAlloc (TraceHeapHandle_t xHeapHandle, void *pvAddress, TraceUnsignedBaseType_t uxSize) |
Signals trace heap alloc. More... | |
traceResult | xTraceHeapFree (TraceHeapHandle_t xHeapHandle, void *pvAddress, TraceUnsignedBaseType_t uxSize) |
Signals trace heap free. More... | |
#define xTraceHeapGetCurrent | ( | xHeapHandle, | |
puxCurrent | |||
) | xTraceEntryGetState(xHeapHandle, TRC_HEAP_STATE_INDEX_CURRENT, puxCurrent) |
Gets trace heap current allocation size.
[in] | xHeapHandle | Trace heap handle. |
[out] | puxCurrent | Current. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
#define xTraceHeapGetHighWaterMark | ( | xHeapHandle, | |
puxHighWaterMark | |||
) | xTraceEntryGetState(xHeapHandle, TRC_HEAP_STATE_INDEX_HIGHWATERMARK, puxHighWaterMark) |
Gets trace heap high water mark.
[in] | xHeapHandle | Trace heap handle. |
[out] | puxHighWaterMark | High water mark. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
#define xTraceHeapGetMax | ( | xHeapHandle, | |
puxMax | |||
) | xTraceEntryGetState(xHeapHandle, TRC_HEAP_STATE_INDEX_MAX, puxMax) |
Gets trace heap max size.
[in] | xHeapHandle | Trace heap handle. |
[out] | puxMax | Max. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
#define xTraceHeapSetCurrent | ( | xHeapHandle, | |
uxCurrent | |||
) | xTraceEntrySetState(xHeapHandle, TRC_HEAP_STATE_INDEX_CURRENT, uxCurrent) |
Sets trace heap current allocation size.
[in] | xHeapHandle | Trace heap handle. |
[in] | uxCurrent | Current. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
#define xTraceHeapSetHighWaterMark | ( | xHeapHandle, | |
uxHighWaterMark | |||
) | xTraceEntrySetState(xHeapHandle, TRC_HEAP_STATE_INDEX_HIGHWATERMARK, uxHighWaterMark) |
Sets trace heap high water mark.
[in] | xHeapHandle | Trace heap handle. |
[in] | uxHighWaterMark | High water mark. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
#define xTraceHeapSetMax | ( | xHeapHandle, | |
uxMax | |||
) | xTraceEntrySetState(xHeapHandle, TRC_HEAP_STATE_INDEX_MAX, uxMax) |
Sets trace heap max size.
[in] | xHeapHandle | Trace heap handle. |
[in] | uxMax | Max heap size. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
traceResult xTraceHeapAlloc | ( | TraceHeapHandle_t | xHeapHandle, |
void * | pvAddress, | ||
TraceUnsignedBaseType_t | uxSize | ||
) |
Signals trace heap alloc.
[in] | xHeapHandle | Trace heap handle. |
[in] | pvAddress | Address. |
[in] | uxSize | Size. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |
traceResult xTraceHeapCreate | ( | const char * | szName, |
TraceUnsignedBaseType_t | uxCurrent, | ||
TraceUnsignedBaseType_t | uxHighWaterMark, | ||
TraceUnsignedBaseType_t | uxMax, | ||
TraceHeapHandle_t * | pxHeapHandle | ||
) |
Creates trace heap.
[in] | szName | Name. |
[in] | uxCurrent | Current level. |
[in] | uxHighWaterMark | High water mark |
[in] | uxMax | Maximum level. |
[out] | pxHeapHandle | Pointer to uninitialized trace heap handle. |
traceResult xTraceHeapFree | ( | TraceHeapHandle_t | xHeapHandle, |
void * | pvAddress, | ||
TraceUnsignedBaseType_t | uxSize | ||
) |
Signals trace heap free.
[in] | xHeapHandle | Trace heap handle. |
[in] | pvAddress | Address. |
[in] | uxSize | Size. |
TRC_FAIL | Failure |
TRC_SUCCESS | Success |