Closed javier-moreno-tridonic-com closed 7 years ago
Hi Javier,
This feature looks very useful :) A few suggestions:
Misc
to make the output more consistent with the default behavior:
libc.a(lib_a-__atexit.o)
--> Misc\libc.a(lib_a-__atexit.o)
It would be great if you could send us a PR and we'll be happy to review it.
Thanks, Marcelo
Well I'd be happy to prepare it, just I would need some pointers for this:
I'd suggest this to be a memap only feature for now (e.g. invoke the tool using python memap ...
).
This will let us prepare the interfaces and do further testing. We will consider calling it from the mbed compile script.
This is great, I'm also looking for a way to have a deeper view into flash / stack / heap memory allocations.
@meriac Anything you want to share here?
@nuket : I had good results parsing arm-non-eabi-nm output - feel free to have a look on an early prototype for d3.js based linker visualization.
You can find the command line settings I chose here. Please note that I had to enable debug information to get line number resolution in the mbed release build. You can find a quick patch for GCC in my tool repo. The official pull request is #2139 for adding debug symbol support to all mbed supported release builds.
Since this functionality was merged already (see https://github.com/ARMmbed/mbed-os/pull/2845) this can be closed
Note: This is just a template, so feel free to use/remove the unnecessary things
Description
Type: Feature request Priority: Minor
Feature Request
To analyse memory usage and identify possible optimisation points, I've been modifying memap.py in the following manner:
original code
My code
With this I get and output similar to this:
Allocated Heap: unknown Allocated Stack: unknown Total Static RAM memory (data + bss): 42496 bytes Total RAM memory (data + bss + heap + stack): 42496 bytes Total Flash memory (text + data + misc): 389373 bytes
I think it would be nice to have such print as optional for the mbed-cli (maybe even for mbed-os features so we could help you identify and fix issues).