zephyr/scripts/footprint
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nilesh Vyas 9ca3cad57d script: footprint: Improve C++ static variable reporting
Enhance the `size_report` script to correctly categorize static C++
variables in the memory report.

Static C++ variables are currently listed under the "No paths"
category in the size report. This occurs because the script's
address-based mapping logic is designed for functions, which
occupy an address range, but fails to handle variables that
have only a single memory address.

This commit improves the `do_address_range_matching` function
to handle single-address mappings. The updated logic now correctly
identifies and assigns static C++ variables to their corresponding
source file paths in the report tree, providing a more accurate and
comprehensive memory footprint analysis for C++ applications.

This enhancement ensures that all symbols, regardless of their
linkage or type, are correctly placed in the report, providing a
more accurate overview of memory usage.

Signed-off-by: Nilesh Vyas <nileshvyas1112@gmail.com>
2025-10-23 16:02:23 -04:00
..
compare_footprint treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
fpdiff.py scripts/footprint: Avoid fpdiff failure when data changes lots 2024-01-10 20:50:51 -05:00
pack_as_twister.py Revert "scripts: Bump Python target version for ruff" 2025-07-04 15:50:06 -05:00
plan.txt scripts: footprint: fix hifive1 rev.B board name 2025-07-15 17:08:43 -10:00
plot.py scripts: footprint: Add a plot script for size reports 2025-09-04 14:42:52 +02:00
size_report script: footprint: Improve C++ static variable reporting 2025-10-23 16:02:23 -04:00
track.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
upload_data.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00