mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
feat(heap): enable heap tracing for the RISC-V targets
When the frame pointer is enabled, it is possible for RISC-V targets to now possible to enable and generate heap call traces.
This commit is contained in:
@@ -4,13 +4,11 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include <string.h>
|
||||
#include <sdkconfig.h>
|
||||
#include "sdkconfig.h"
|
||||
#include <inttypes.h>
|
||||
#include "esp_log.h"
|
||||
|
||||
#define HEAP_TRACE_SRCFILE /* don't warn on inclusion here */
|
||||
#include "esp_heap_trace.h"
|
||||
#undef HEAP_TRACE_SRCFILE
|
||||
#include "esp_heap_caps.h"
|
||||
#include "esp_attr.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
@@ -22,8 +20,6 @@ static __attribute__((unused)) const char* TAG = "heaptrace";
|
||||
|
||||
#define STACK_DEPTH CONFIG_HEAP_TRACING_STACK_DEPTH
|
||||
|
||||
#if CONFIG_HEAP_TRACING_STANDALONE
|
||||
|
||||
typedef enum {
|
||||
TRACING_STARTED, // start recording allocs and free
|
||||
TRACING_STOPPED, // stop recording allocs and free
|
||||
@@ -672,5 +668,3 @@ static HEAP_IRAM_ATTR void list_find_and_remove(void* p)
|
||||
}
|
||||
|
||||
#include "heap_trace.inc"
|
||||
|
||||
#endif // CONFIG_HEAP_TRACING_STANDALONE
|
||||
|
Reference in New Issue
Block a user