heap_trace_init_standalone() function
Initialise heap tracing in standalone mode. This function must be called before any other heap tracing functions. To disable heap tracing and allow the buffer to be freed, stop tracing and then call heap_trace_init_standalone(NULL, 0);
Arguments
record_buffer
Provide a buffer to use for heap trace data. Note: External RAM is allowed, but it prevents recording allocations made from ISR's.
num_records
Size of the heap trace buffer, as number of record structures.
Return value
- ESP_ERR_NOT_SUPPORTED Project was compiled without heap tracing enabled in menuconfig. - ESP_ERR_INVALID_STATE Heap tracing is currently in progress. - ESP_OK Heap tracing initialised successfully.
![]()
heap_trace_init_standalone(record_buffer, num_heap_records);
heap_trace_init_standalone() is called by 1 function:
![]()
heap_trace_init_standalone()