Skip to content

Commit

Permalink
[Heap Trace Standalone] improve SPI ram support
Browse files Browse the repository at this point in the history
  • Loading branch information
chipweinberger committed Nov 17, 2022
1 parent aad600c commit ff24df2
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 83 deletions.
17 changes: 16 additions & 1 deletion components/app_trace/heap_trace_tohost.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2018-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -69,11 +69,26 @@ esp_err_t heap_trace_get(size_t index, heap_trace_record_t *record)
return ESP_ERR_NOT_SUPPORTED;
}

esp_err_t heap_trace_summary(heap_trace_summary_t *summary)
{
return ESP_ERR_NOT_SUPPORTED;
}

void heap_trace_dump(void)
{
return;
}

void heap_trace_dump_internal_ram_only(void)
{
return;
}

void heap_trace_dump_psram_only(void)
{
return;
}

/* Add a new allocation to the heap trace records */
static IRAM_ATTR void record_allocation(const heap_trace_record_t *record)
{
Expand Down
1 change: 1 addition & 0 deletions components/heap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ endif()
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS ${includes}
PRIV_INCLUDE_DIRS ${priv_includes}
REQUIRES spi_flash
LDFRAGMENTS linker.lf
PRIV_REQUIRES soc)

Expand Down

0 comments on commit ff24df2

Please sign in to comment.