Found 2 other functions taking a
heap_trace_record_t
argument:
Return a raw record from the heap trace buffer
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);