本文作者原创,首发在本博客;CSDN 上的同名文章已标注为转载并回链到本页:https://blog.csdn.net/qq_30220519/article/details/140937199
编译
1 | $ git clone https://github.com/google/bloaty |
命令
1 | bloaty.exe --list-sources |
1 |
|
测试
1 |
|
1 | g++ -g main.cpp -o my_program.exe |

配置
1 | bloaty -c bloaty_package.bloaty my_program.exe |
bloaty_package.bloaty
1 | custom_data_source: { |
参考
GitHub - google/bloaty: Bloaty: a size profiler for binaries
C/C++ Native 包大小测量_bloaty-CSDN博客
创作不易,小小的支持一下吧!

