google / bloaty

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

the difference between [section .text] and .cpp when use -d compileunits #307

Closed Cirnoo closed 2 years ago

Cirnoo commented 2 years ago

In the same compilation unit (my .cpp file), some functions are assigned to [section .text] and others are assigned to .cpp.

haberman commented 2 years ago

[section.text] indicates that Bloaty couldn't figure out a specific .cpp file to attribute the bytes to.

The analysis Bloaty performs is an inexact science, so there will always been imperfections and things Bloaty can't figure out.

If you have a specific case you can point to where Bloaty is failing to label some functions properly, you could file a bug for that.