Hacker GitHub

← All repos

google/bloaty

View on GitHub ↗ ★ 5,565 C++

Bloaty: a size profiler for binaries

31 mentions on Hacker News by 20 people: 9 stories, 22 comments · first 2016-11-08 · latest 2026-01-06

Mentions per year 31 mentions · busiest year 2020 (7)
20082026
  1. …could lead to something more fruitful. [1] https://x.com/emergetools/status/1943060976464728250 [2] https://github.com/google/bloaty [3] https://github.com/lechium/classdumpios [4] https://github.com/NationalSecurityAgency/ghidra
    comment by thefilmore · 2026-01-06 · in Why is the Gmail app 700 MB?
  2. …Xtensa, so I had to write an alternative. ¹ https://github.com/project-chip/connectedhomeip/ ² https://github.com/google/bloaty
  3. …was inlining too aggressively in some cases, causing functions that should be tiny to be 75 kB+. https://github.com/google/bloaty
    comment by rbrown46 · 2023-05-07 · in How to make smaller C and C++ binaries
  4. I'm surprised they didn't go for the binary size analysis tools like https://github.com/google/bloaty Or goweight.
  5. Loggy McLogface Like the other Google project, Bloaty McBloatface. https://github.com/google/bloaty
    comment by smnrchrds · 2022-01-01 · in Log4jscanner
  6. A famous one is Google's Bloaty McBloatface [1]. It's a very powerful and useful tool. 1. https://github.com/google/bloaty
  7. …individual entries in pclntab to specific symbols? If so I'd love to add this capability to https://github.com/google/bloaty which already tries to do per-symbol analysis of many other sections (eh_frame, rela.dyn, etc).
  8. …them properly, is exactly what led me to create and invest so much effort into Bloaty McBloatface: https://github.com/google/bloaty Bloaty's core principle is that every byte of the file should be attributed to something, so that the sum…
  9. I used my tool Bloaty, which parses the ELF and DWARF information in the binary: https://github.com/google/bloaty
    comment by haberman · 2020-12-31 · in Don't Use Protobuf for Telemetry
  10. …for my favorite size profiler (that is compatible with ELF and other formats): Bloaty McBloatface. https://github.com/google/bloaty
    comment by fnayr · 2020-10-29 · in What's in a Linux Executable?
  11. I just ran Bloaty ( https://github.com/google/bloaty ) on /usr/bin/touch from Catalina, and I got this: $ bloaty `which touch` -d segments,sections --domain=file FILE SIZE --------------- 55.1% 19.6Ki __LINKEDIT 91.7% 18.0Ki Code Signature…
  12. …flame wars aside, Bloaty McBloatface is a wonderful tool to analyze why the binary size is big: https://github.com/google/bloaty I frequently use this tool to answer questions for C++ binaries, another language that has a penchant for…
  13. I wrote Bloaty ( https://github.com/google/bloaty ) which involved writing a totally custom ELF file parser. Here are some epiphanies I had about ELF while writing it. ELF (and Mach-O, PE, etc) are designed to optimize the creation of a…
    comment by haberman · 2019-05-16 · in ELF files on Linux
  14. I created https://github.com/google/bloaty/issues/110 to track this. I'll try to find time to clean up the patch, but no promises. Lets continue the discussion in the GH issue.
  15. This was easier than I thought: https://github.com/google/bloaty/compare/master...zokier:rus... and here is the wrapper for rustc-demangle: https://github.com/zokier/rust-demangle-clib Seems to work just fine for my simple use at least:…
  16. …in the code each bit of .rodata is accessed from, but that seems bit of a stretch. My tool Bloaty ( https://github.com/google/bloaty ) attempts to do exactly this. It even disassembles the binary looking for instructions that reference…
  17. Shameless plug: my project Bloaty ( https://github.com/google/bloaty ) is a size profiler that shows you both mapped size and file size out-of-the-box.
  18. …like this, you might like my project Bloaty McBloatface, which can dump size profiles of binaries: https://github.com/google/bloaty
    comment by haberman · 2017-06-11 · in Bingrep: Like grep, but for binaries
  19. wonder what would https://github.com/google/bloaty say about those binaries...
  20. …a size profiling tool that can give much more precise measurements (like size(1) on steroids, see: https://github.com/google/bloaty ). Here is output for LuaJIT: $ bloaty src/luajit -n 5 VM SIZE FILE SIZE -------------- --------------…
    comment by haberman · 2017-01-18 · in Pixie – A small, fast, native Lisp
  21. …symbols, their addresses, segments, and so on. You can also use my new tool Bloaty McBloatface ( https://github.com/google/bloaty ). Check out the -v option especially, which will dump a memory map of both the file domain and the VM…
    comment by haberman · 2016-11-20 · in Anatomy of a Program in Memory (2009)
  22. …ELF parser from Bloaty; I'm happy with how it turned out (the first 400 lines are the ELF parser): https://github.com/google/bloaty/blob/master/src/elf.cc
    comment by haberman · 2016-11-17 · in Basic Mach-O binary parser