There are plenty of script/tools for counting line of code, and some to count functions size in terms of line of code. But here I’m looking to a way to measure function size in terms of bytes of generated code.
Does anyone know a way/tools to extract this information from a .lib or a .dll?
For example, I know how to list function name from a .lib or .dll, and their start address, but I haven’t found a way yet to get their memory footprint.
PS : I’m look for a solution on windows platform, but any answer on an alternative system is welcome.
I’m not sure it’s quite what you’re after, but you could try parsing the map file as per this tutorial.
Also, if you’re after a paid-for solution, the ANTS profiler from Red-gate is reasonable.