Giter Site home page Giter Site logo

Comments (4)

haberman avatar haberman commented on May 22, 2024

I'm not a Go user. How can I reproduce this?

from bloaty.

psanford avatar psanford commented on May 22, 2024

The etcd binary I was examining is here: https://s3.amazonaws.com/www.sanford.io/etcd

To build the binary yourself (assuming you have the go tool installed):

git clone https://github.com/coreos/etcd
cd etcd
./build
ls bin/

from bloaty.

dominikh avatar dominikh commented on May 22, 2024

Possibly related to #176

from bloaty.

haberman avatar haberman commented on May 22, 2024

Sorry I was not able to debug this earlier.

I just tried your command and I am getting reasonable results (I did have to specify non-compressed dwarf per #204):

$ ../bloaty -d compileunits bin/etcd -n 30
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  36.3%  16.3Mi  31.9%  6.62Mi    [318 Others]
  12.3%  5.52Mi  26.6%  5.52Mi    [section .gopclntab]
   9.3%  4.17Mi   4.0%   848Ki    runtime
   4.9%  2.19Mi   3.7%   790Ki    go.etcd.io/etcd/api/v3/etcdserverpb
   3.5%  1.56Mi   3.3%   701Ki    net/http
   2.9%  1.31Mi   2.3%   483Ki    github.com/gogo/protobuf/proto
   2.5%  1.12Mi   4.8%  1.00Mi    vendor/golang.org/x/text/unicode/norm
   2.4%  1.09Mi   2.4%   511Ki    go.etcd.io/etcd/server/v3/etcdserver
   2.4%  1.08Mi   0.0%       0    [section .debug_frame]
   2.2%   988Ki   1.9%   401Ki    crypto/tls
   1.9%   881Ki   1.6%   345Ki    github.com/json-iterator/go
   1.8%   845Ki   1.5%   315Ki    github.com/golang/protobuf/proto
   1.5%   667Ki   1.3%   275Ki    net
   1.2%   569Ki   1.2%   248Ki    google.golang.org/grpc
   1.1%   505Ki   0.9%   196Ki    go.etcd.io/etcd/client/v3
   1.1%   500Ki   0.9%   194Ki    google.golang.org/grpc/internal/transport
   1.1%   489Ki   0.9%   183Ki    math/big
   1.0%   458Ki   0.6%   136Ki    github.com/spf13/pflag
   1.0%   438Ki   0.7%   156Ki    golang.org/x/net/http2
   0.9%   412Ki   0.8%   167Ki    github.com/gogo/protobuf/protoc-gen-gogo/descriptor
   0.9%   407Ki   0.9%   188Ki    go.etcd.io/etcd/server/v3/etcdserver/api/rafthttp
   0.9%   407Ki   0.9%   190Ki    go.etcd.io/etcd/api/v3/etcdserverpb/gw
   0.9%   394Ki   0.6%   133Ki    go.etcd.io/etcd/server/v3/etcdmain
   0.9%   392Ki   0.8%   170Ki    gopkg.in/yaml.v2
   0.8%   383Ki   0.7%   142Ki    reflect
   0.8%   349Ki   0.6%   123Ki    github.com/modern-go/reflect2
   0.8%   348Ki   0.4%  90.0Ki    github.com/prometheus/client_golang/prometheus/promhttp
   0.8%   348Ki   1.6%   348Ki    [section .rodata]
   0.7%   323Ki   0.6%   128Ki    internal/profile
   0.7%   317Ki   0.7%   149Ki    go.uber.org/zap/zapcore
   0.7%   309Ki   0.6%   137Ki    crypto/x509
 100.0%  44.8Mi 100.0%  20.7Mi    TOTAL

I'll close this now. If you have a case where Bloaty is still returning unreasonable results, please let me know.

from bloaty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.