{"action":"created","issue":{"url":"https://api.github.com/repos/google/bloaty/issues/138","repository_url":"https://api.github.com/repos/google/bloaty","labels_url":"https://api.github.com/repos/google/bloaty/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/google/bloaty/issues/138/comments","events_url":"https://api.github.com/repos/google/bloaty/issues/138/events","html_url":"https://github.com/google/bloaty/issues/138","id":348899394,"node_id":"MDU6SXNzdWUzNDg4OTkzOTQ=","number":138,"title":"-d compileunits on go binary shows suspiciously large size for sync/atomic ","user":{"login":"psanford","id":33375,"node_id":"MDQ6VXNlcjMzMzc1","avatar_url":"https://avatars1.githubusercontent.com/u/33375?v=4","gravatar_id":"","url":"https://api.github.com/users/psanford","html_url":"https://github.com/psanford","followers_url":"https://api.github.com/users/psanford/followers","following_url":"https://api.github.com/users/psanford/following{/other_user}","gists_url":"https://api.github.com/users/psanford/gists{/gist_id}","starred_url":"https://api.github.com/users/psanford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psanford/subscriptions","organizations_url":"https://api.github.com/users/psanford/orgs","repos_url":"https://api.github.com/users/psanford/repos","events_url":"https://api.github.com/users/psanford/events{/privacy}","received_events_url":"https://api.github.com/users/psanford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T21:30:36Z","updated_at":"2018-08-09T07:30:55Z","closed_at":null,"author_association":"NONE","body":"I ran bloaty on an internal go binary which reported sync/atomic using ~30% of the binary size. This seemed... unlikely. So I tried running bloatly on an etcd binary (linux amd64) compiled from master which shows something very similar:\r\n\r\n```\r\n$ /tmp/bloaty/bloaty -d compileunits etcd -n 5\r\n     VM SIZE                              FILE SIZE\r\n --------------                        --------------\r\n  49.0%  2.92Mi [142 Others]            4.27Mi  46.2%\r\n  30.8%  1.83Mi sync/atomic             2.79Mi  30.2%\r\n   9.1%   557Ki net/http                 824Ki   8.7%\r\n   7.3%   444Ki runtime                  733Ki   7.8%\r\n   3.8%   234Ki net                      345Ki   3.7%\r\n   0.0%       0 [section .debug_frame]   329Ki   3.5%\r\n 100.0%  5.96Mi TOTAL                   9.23Mi 100.0%\r\n```\r\n\r\n30% doesn't sound right to me as sync/atomic is a small amount of assembly code and not much else.  \r\n\r\nI'm hoping someone could shed some light onto what is going on here. Is this somehow related to inlining? "},"comment":{"url":"https://api.github.com/repos/google/bloaty/issues/comments/411664717","html_url":"https://github.com/google/bloaty/issues/138#issuecomment-411664717","issue_url":"https://api.github.com/repos/google/bloaty/issues/138","id":411664717,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTY2NDcxNw==","user":{"login":"haberman","id":1270,"node_id":"MDQ6VXNlcjEyNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/1270?v=4","gravatar_id":"","url":"https://api.github.com/users/haberman","html_url":"https://github.com/haberman","followers_url":"https://api.github.com/users/haberman/followers","following_url":"https://api.github.com/users/haberman/following{/other_user}","gists_url":"https://api.github.com/users/haberman/gists{/gist_id}","starred_url":"https://api.github.com/users/haberman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haberman/subscriptions","organizations_url":"https://api.github.com/users/haberman/orgs","repos_url":"https://api.github.com/users/haberman/repos","events_url":"https://api.github.com/users/haberman/events{/privacy}","received_events_url":"https://api.github.com/users/haberman/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T07:30:55Z","updated_at":"2018-08-09T07:30:55Z","author_association":"MEMBER","body":"I'm not a Go user. How can I reproduce this?"}}
{"actor":{"display_login":"haberman"}}