You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a 44MB executable. go-binsize-treemap reports 12MB. I have 5.4MB of embedded files. If I link with -s -w, I get a total of 33MB instead. I don't know if the difference is already included into the output of go tool nm -size. If I suppose it is not, I still have 15 MB unaccounted for. If I zero-out one of the embedded file, its size is subtracted from the total, so it does not seem there is a large overhead for embedded files. I am using go 1.18. Any hint where the bytes could be hidden?
Hi, I tried to find missing bytes before too. Even by accounting everything from go tool nm -size there is missing bytes. Some discrepancies can be large.
My best best is to dig into go tool nm -size or Go internals.
Which project you are using? I may try to repro and we can collect where discrepancies coming from together with other reports.
I am using https://github.com/vincentbernat/akvorado. go tool nm -size doesn't display anything for embedded files. I have spent some time looking left and right without any success.
No description provided.
The text was updated successfully, but these errors were encountered: