jedrzejboczar / elf-size-analyze

Script for analyzing ELF memory usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature request] Wide print

Mek101 opened this issue · comments

commented

I have rather long typenames due to template types and namespaces, and the default printing method cuts the symbol names, to the point I can't distinguish them.

======================================== ROM =========================================
Symbol                                                              Size        %     
======================================================================================
/my/project/path/src/util                      2.3 KiB   100.00
  convert                                                             1.7 KiB    73.03
    CompactParse.cc                                                   1.1 KiB    45.40
      pj_impl_1_0_0::tryParseNumber(char const*)                      1.1 KiB    45.40
    UTF16Parse.cc                                                   664.0 B      27.63
      writeCodeunit(char*, int)                                     303.0 B      12.61
      pj_impl_1_0_0::tryConvertInplace(char*, bool)                 242.0 B      10.07
      parseHex4Unchecked(char const*)                               119.0 B       4.95
  arena/DynArenaImpl.cc                                             648.0 B      26.97
    pj_impl_1_0_0::DynArenaImpl::setAvailable(unsigned short, ...   332.0 B      13.82
    pj_impl_1_0_0::DynArenaImpl::resizeAlloc(unsigned long, un...   110.0 B       4.58
    pj_impl_1_0_0::DynArenaImpl::DynArenaImpl(pj_impl_1_0_0::D...   103.0 B       4.29
    pj_impl_1_0_0::DynArenaImpl::DynArenaImpl(pj_impl_1_0_0::D...   103.0 B       4.29
?                                                                     0.0 B       0.00
======================================================================================
Symbols total                                                         2.3 KiB         
======================================================================================

(Note the last 2 results)

Could you please add an option to use the longest symbol name to calculate the table width and as such print all full symbol names?

There exists the -w/--max-width parameter to control output width. In particular, using -w 0 sets it to unlimited.

commented

Thank you