This repository is used to generate interactive linker statistics and revive the former repo. Please have a look at our interactive example.
Then clone the tool to a local directory
git clone https://github.com/hegdi/linker_reportThis will use GNU nm from your selected toolchain. The toolchain can be selected by setting nm accordingly in config.py.
To customise your target further you can change the color mappings in sequences.js.
Now run the ELF linker statistics tool:
# Process Data: provide one or more elf files for analysis
> elfsize.py -i <your file>.elf -bThis will open up a browser page automatically with the visualisation.
> elfsize.py -h
usage: elfsize.py [-h] -i [BINARY [BINARY ...]] [-o OUTPUT] [-b]
Analyse binary built by gcc and generate json containing binary size
information
optional arguments:
-h, --help show this help message and exit
-i [BINARY [BINARY ...]], --binary [BINARY [BINARY ...]]
path to the binary. You can also specify multiple
binaries: -i <path1> <path2>
-o OUTPUT, --output OUTPUT
path of output json, defaults to
/Users/leozhou/projects/mbed-os-linker-report/html
/data-flare.js, default filename to data-flare.js if a
folder is specified
-b, --browser launch the pie chart visualisation in a browser
Below you can find an example screenshot of our tool. Please have a look at our interactive example, too.
