How to find the memory usage
You can set the post-build call to output that information to the console in a more readable format.
Project Settings -> C/C++ Build -> Settings -> Build Steps tab, look for the post-build steps command. There is already a call to arm-none-eabi-size at the end, if you insert --format=sysv afterwards you should get a nicer printout.
My total command looks like: arm-none-eabi-objcopy -O binary "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.bin" && arm-none-eabi-size --format=sysv "${BuildArtifactFileName}"
When the code builds, I get output on the console that has a table with the size in bytes of each section:
section size addr
.isr_vector 456 2097152
.text 21336 2097616
.itcm_ram 100 2118952
.rodata 304 2119052
.init_array 4 2119356
.fini_array 4 2119360
.data 5704 536870912
.bss 7244 536876616
._user_heap_stack 1540 536883860
.ARM.attributes 48 0
.debug_info 113664 0
.debug_abbrev 12731 0
.debug_loc 61914 0
.debug_aranges 4976 0
.debug_ranges 4544 0
.debug_macro 171041 0
.debug_line 79704 0
.debug_str 1008400 0
.comment 110 0
.debug_frame 14624 0
Total 1508448