Lines Matching full:heap
18 #warning "esp_heap_trace.h is included but heap tracing is disabled in menuconfig, functions are no…
48 * @brief Stores information about the result of a heap trace.
51 heap_trace_mode_t mode; ///< The heap trace mode we just completed / are running
65 * @brief Initialise heap tracing in standalone mode.
67 * This function must be called before any other heap tracing functions.
69 …* To disable heap tracing and allow the buffer to be freed, stop tracing and then call heap_trace_…
71 * @param record_buffer Provide a buffer to use for heap trace data.
73 * @param num_records Size of the heap trace buffer, as number of record structures.
75 * - ESP_ERR_NOT_SUPPORTED Project was compiled without heap tracing enabled in menuconfig.
76 * - ESP_ERR_INVALID_STATE Heap tracing is currently in progress.
77 * - ESP_OK Heap tracing initialised successfully.
82 * @brief Initialise heap tracing in host-based mode.
84 * This function must be called before any other heap tracing functions.
87 * - ESP_ERR_INVALID_STATE Heap tracing is currently in progress.
88 * - ESP_OK Heap tracing initialised successfully.
93 …* @brief Start heap tracing. All heap allocations & frees will be traced, until heap_trace_stop() …
97 …* @note Calling this function while heap tracing is running will reset the heap trace state and co…
100 * - HEAP_TRACE_ALL means all heap allocations and frees are traced.
103 * - ESP_ERR_NOT_SUPPORTED Project was compiled without heap tracing enabled in menuconfig.
110 * @brief Stop heap tracing.
113 * - ESP_ERR_NOT_SUPPORTED Project was compiled without heap tracing enabled in menuconfig.
114 * - ESP_ERR_INVALID_STATE Heap tracing was not in progress.
115 * - ESP_OK Heap tracing stopped..
120 * @brief Resume heap tracing which was previously stopped.
125 * The heap trace mode is the same as when heap_trace_start() was
129 * - ESP_ERR_NOT_SUPPORTED Project was compiled without heap tracing enabled in menuconfig.
130 * - ESP_ERR_INVALID_STATE Heap tracing was already started.
131 * - ESP_OK Heap tracing resumed.
136 * @brief Return number of records in the heap trace buffer
138 * It is safe to call this function while heap tracing is running.
143 * @brief Return a raw record from the heap trace buffer
145 * @note It is safe to call this function while heap tracing is
147 * skip entries unless heap tracing is stopped first.
150 * @param[out] record Record where the heap trace record will be copied.
152 * - ESP_ERR_NOT_SUPPORTED Project was compiled without heap tracing enabled in menuconfig.
153 * - ESP_ERR_INVALID_STATE Heap tracing was not initialised.
154 * - ESP_ERR_INVALID_ARG Index is out of bounds for current heap trace record count.
160 * @brief Dump heap trace record data to stdout
162 * @note It is safe to call this function while heap tracing is
164 * entries unless heap tracing is stopped first.
169 * @brief Dump heap trace from the memory of the capabilities passed as parameter.
172 * Set MALLOC_CAP_INTERNAL to dump heap trace data from internal memory.
173 * Set MALLOC_CAP_SPIRAM to dump heap trace data from PSRAM.
174 * Set both to dump both heap trace data.
179 * @brief Get summary information about the result of a heap trace
181 * @note It is safe to call this function while heap tracing is running.