From f1f5f607b2db99ad33d6fa81467a441e4626316e Mon Sep 17 00:00:00 2001 From: Detlev Zundel Date: Thu, 25 Feb 2021 09:22:26 +0100 Subject: [PATCH] scripts: size_report: Add a depth parameter to CMakeLists.txt The parameter can be used to limit the ram and rom reports to a certain depth. The resulting graphs with depths of e.g. 3 or 4 are visually easier to grasp. Signed-off-by: Detlev Zundel --- cmake/reports/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/reports/CMakeLists.txt b/cmake/reports/CMakeLists.txt index 5b5e5d7d2ac..651e1050e92 100644 --- a/cmake/reports/CMakeLists.txt +++ b/cmake/reports/CMakeLists.txt @@ -2,6 +2,7 @@ set(flag_for_ram_report ram) set(flag_for_rom_report rom) +set(report_depth 99) foreach(report ram_report rom_report) add_custom_target( @@ -12,6 +13,7 @@ foreach(report ram_report rom_report) -z ${ZEPHYR_BASE} -o ${CMAKE_BINARY_DIR} --json ${CMAKE_BINARY_DIR}/${flag_for_${report}}.json + -d ${report_depth} ${flag_for_${report}} DEPENDS ${logical_target_for_zephyr_elf} $