Skip to contentSkip to conversation

Creating ELF function/file size statistics

DISCUSSION Erik Ekman 1 participant 1 message Jan 28, 2008

lore
Share & tools
lore

Erik Ekman

author
#0 lore raw

Hi

I am doing some developing in C and want to see ELF size per function, file and directory. Right now I extract the sizes of functions and fields from objdump and use an ugly sed hack to find the file of each function/object, and then a python script that does some matching.

I read about the DWARF format and it seems it includes the things I need. The output from objdump -W and eu-readelf -w shows that functions and object are tied to a file in some way.

Does any of the existing dwarf programs do this? pdwtags looked as a best fit from reading the OLS paper. I have not fetched the latest source yet due to some workplace firewalls. If no tool does this and it is possible, then I am interested in developing one.

Please cc me, i am not on the list.

/Erik