1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #pragma once
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef CONFIG_HEAP_TRACING
- #define TRACE_INIT \
- if (!is_recovery_running) { \
- ESP_ERROR_CHECK(heap_trace_init_tohost())
- }
- #define TRACE_START \
- if (!is_recovery_running) { \
- ESP_ERROR_CHECK(heap_trace_start(HEAP_TRACE_ALL))
- } \
- #define TRACE_STOP if (!is_recovery_running) { ESP_ERROR_CHECK(heap_trace_stop()); }
- #else
- #define TRACE_START
- #define TRACE_STOP
- #define TRACE_INIT
- #endif
- #ifdef __cplusplus
- }
- #endif
|