feat(heap): add option to enable/disable heap trace function

This commit is contained in:
Dong Heng
2019-11-06 11:36:47 +08:00
parent fa4b8c5586
commit 975a7fd12a
6 changed files with 40 additions and 5 deletions

View File

@ -14,12 +14,15 @@
#pragma once
#include "sdkconfig.h"
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef CONFIG_HEAP_TRACING
typedef enum {
HEAP_TRACE_NONE = 0,
@ -80,6 +83,8 @@ esp_err_t heap_trace_resume(void);
*/
void heap_trace_dump(void);
#endif /* CONFIG_HEAP_TRACING */
#ifdef __cplusplus
}
#endif