Commit 1ed2f6e
committed
os/tools/memstats_gnueabil.py : Show all section details dynamically
The updated script dynamically discovers all memory sections from the map file instead of hardcoding only 3 sections '.text/.data/.bss',
revealing previously invisible sections like '.iram', '.psram_bss', '.psram_data' that contain significant memory usage
Previous output:
16 ######################################
17 ## Library Sizes ##
18 ######################################
19 .text .data .bss Total
20 187473 6100 4920 198493 libboard.a
21 124418 20 70692 195130 libbluetooth.a
22 98814 216 46080 145110 libwifi.a
82 libboard.a 198493
83 .text .data .bss Total
84 8443 0 1648 10091 ble_tizenrt_impl.o
85 8246 4 0 8250 ecp_curves.o
Current output:
27 ######################################
28 ## Library Sizes ##
29 ######################################
30 .vectors .text .ARM.exidx .iram .psram_data .data .psram_bss .bss Total
31 libboard.a 416 332198 0 7408 0 6100 11700 4920 362742
32 libbluetooth.a 0 219020 0 0 0 20 0 70692 289732
33 libwifi.a 0 156277 0 44945 0 216 0 46080 247518
55 libboard.a 362742
56 .vectors .text .ARM.exidx .iram .psram_data .data .psram_bss .bss Total
57 aes.o 0 3864 0 0 0 0 8488 260 12612
58 ble_tizenrt_impl.o 0 10404 0 0 0 0 0 1648 12052
59 wpa_supplicant.o 0 11035 0 0 0 0 0 0 110351 parent 2cec46c commit 1ed2f6e
1 file changed
Lines changed: 294 additions & 234 deletions
0 commit comments