mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-16 19:33:56 +08:00
feat(freertos): Add memory mark to trace heap over call levels
This commit is contained in:
components/freertos/port/esp8266
@ -332,6 +332,17 @@ size_t xPortWantedSizeAlign(size_t xWantedSize)
|
||||
return xWantedSize;
|
||||
}
|
||||
|
||||
/*
|
||||
* @brief add trace information to allocated memory
|
||||
*/
|
||||
void esp_mem_trace(const void *ptr, const char *trace, int no)
|
||||
{
|
||||
BlockLink_t *pxLink = (BlockLink_t *)((uint8_t *)ptr - uxHeapStructSize);
|
||||
|
||||
pxLink->file = trace;
|
||||
pxLink->line = (unsigned)no;
|
||||
}
|
||||
|
||||
void *pvPortMalloc( size_t xWantedSize )
|
||||
#ifdef MEMLEAK_DEBUG
|
||||
{
|
||||
|
Reference in New Issue
Block a user