8 #ifndef COMPONENTS_CPP_UTILS_MEMORY_H_
9 #define COMPONENTS_CPP_UTILS_MEMORY_H_
10 #include "sdkconfig.h"
11 #ifdef CONFIG_HEAP_TRACING
14 #include <esp_heap_trace.h>
19 static bool checkIntegrity();
21 static void dumpRanges();
22 static void dumpHeapChange(std::string tag);
23 static void init(uint32_t recordCount);
24 static void resumeTrace();
25 static void startTraceAll();
26 static void startTraceLeaks();
27 static void stopTrace();
30 static heap_trace_record_t* m_pRecords;
31 static size_t m_lastHeapSize;