google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.71k stars 340 forks source link

How to find out or debug what causes large file size? #320

Open dwirandytlvk opened 1 year ago

dwirandytlvk commented 1 year ago

Hi, I have try the bloaty tools to analysis my binary application inside IPA file to know more about what cause IPA size increased, after i use this tools and i found that 1 file that has file size more than 12 MB

bloaty output 97.5% 12.4Mi 97.5% 12.4Mi KYCViewController.m

My question is how to know detail why this file has very large size?

acecilia commented 1 year ago

If the tool would provide a list of the symbols associated with the compilation unit, then you could observe the size of each symbol in the file to get more details. I think this is what is mentioned in https://github.com/google/bloaty/issues/150

EDIT: seems this is already possible by using -d compileunits,sections,symbols 🎉