Open brevansio opened 4 years ago
I'm seeing the same thing, for me the first line is
46.8% 27.8Mi /path/to/project/Pods/Folly/folly/json_pointer.cpp 27.8Mi 47.5%
This is after archiving and iOS app and supplying the DWARF data via the command line, full command
bloaty -n 0 -d compileunits --debug-file App.dSYM/Contents/Resources/DWARF/App Payload/App.app/App
Seems like the tool is wrongly associating symbols to their compilation units. When running with the option -d compileunits,sections,symbols
it is possible to observe many unrelated symbols listed under the same compilation unit
I ran into this issue with a symbol associated with a C static char array https://github.com/firebase/firebase-ios-sdk/issues/13110. I can attach the binaries in question here if that helps.
I've been running bloaty on an iOS app recently and found that
-d compileunits
, while very helpful in some cases, was consistently telling me that a single.c
file was >20MB. Is it possible that there is something going on when the binary is overly large?Output from the iOS App (with an embedded static lib)
Output from the dependent library (built separately)