Is there a “function size profiler” out there?
问题 After three years working on a C++ project, the executable has grown to 4 MB. I'd like to see where all this space is going. Is there a tool that could report what the biggest space hogs are? It would be nice to see the size by class (all functions in a class), by template (all instantiations), and by library (how much belongs to the C standard library and STL? how much for each library in the exe?) Edit: Note, I am using Visual C++ on Windows. 回答1: In Linux , you can use nm to show all