Twiggy
Twiggy is a code size profiler
...It works by inspecting a binary’s call graph and providing detailed breakdowns of which functions are included and how they are interconnected, allowing developers to trace dependencies and identify unnecessary code paths. This makes Twiggy particularly useful in performance-sensitive environments such as web applications, embedded systems, and blockchain smart contracts, where minimizing binary size is critical. The tool offers multiple analysis modes that answer questions like why a function is present, how much space it consumes, and what dependencies pull it into the final binary. ...