Bloaty seems to be what I was looking for. It's limited, requires symbols for some options and doesn't have GUI but is a start. Probably someone already made GUI for it and I just need to search.
Thank you both.
I noticed that https://www.jackyoustra.com/binary appears to fail with 'Reference Error: Can't find variable: SharedArrayBuffer' on Safari when you give it a binary.
On Firefox, it does not display the size of sections unless you hover the cursor. Not sure if it's intended - just noting here.
Comments
Thanks! This looks really nice and handy. I wish it could work with any native binary but I understand that it focuses on Go specifically.
On Windows, there's SizeBench[0] but it doesn't work on macOS and non-PE files, and I miss having a tool like that.
[0]: https://github.com/microsoft/SizeBench, likely used to be an internal tool that was open-sourced
Try this: https://www.jackyoustra.com/binary
Bloaty seems to be what I was looking for. It's limited, requires symbols for some options and doesn't have GUI but is a start. Probably someone already made GUI for it and I just need to search.
Thank you both.
I noticed that https://www.jackyoustra.com/binary appears to fail with 'Reference Error: Can't find variable: SharedArrayBuffer' on Safari when you give it a binary.
On Firefox, it does not display the size of sections unless you hover the cursor. Not sure if it's intended - just noting here.
Only tested with chrome! I'll add some cross browser tests and get back to you soon, thanks!
That is intended behavior, but looking back seems kind of silly? I'll fix!
You may want to try google/bloaty.