heap: Separate standalone and common part of tracing module

This commit is contained in:
Alexey Gerenkov
2018-12-12 20:29:47 +03:00
parent 2d52ac48f9
commit 335576013e
6 changed files with 245 additions and 204 deletions

View File

@@ -47,7 +47,6 @@ typedef struct {
/**
* @brief Initialise heap tracing in standalone mode.
* @note Standalone mode is the only mode currently supported.
*
* This function must be called before any other heap tracing functions.
*
@@ -63,6 +62,17 @@ typedef struct {
*/
esp_err_t heap_trace_init_standalone(heap_trace_record_t *record_buffer, size_t num_records);
/**
* @brief Initialise heap tracing in host-based mode.
*
* This function must be called before any other heap tracing functions.
*
* @return
* - ESP_ERR_INVALID_STATE Heap tracing is currently in progress.
* - ESP_OK Heap tracing initialised successfully.
*/
esp_err_t heap_trace_init_tohost(void);
/**
* @brief Start heap tracing. All heap allocations & frees will be traced, until heap_trace_stop() is called.
*