Comments (4)
I'm not a Go user. How can I reproduce this?
from bloaty.
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.
Possibly related to #176
from bloaty.
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)
- testing bloaty with chromium
- Can't read index 0 from strtab
- Add SORTBY option for vm and file size diffs
- bloaty broken on ubuntu 22.04 HOT 3
- Overflow in vm range HOT 1
- Total size in compare dont show correctly ! HOT 1
- Allow builders to prefer using system libraries
- Build broken on Arch Linux with ABSL_ASSUME errors from protobuf headers HOT 3
- Compiling under C++17 produces hundreds of warnings
- Plus sign confusing when size decreased
- zlib build failure when using bundled version HOT 1
- Size diff broken after PR #313 "Preserve Size Information During Diff"
- `couldn't find abbreviation for code` when run with `-d compileunits`
- Add support for DWARF form 30
- this tool support for windows? HOT 1
- --raw-map option missing from help string
- crash on reversed high_pc/low_pc with -d compileunits
- error building due to refinition in abseil-cpp/absl/numeric/int128.cc
- How to read the debuginfo from the Chromium output object file
- Bloaty accepts `-n 0` but not `max_rows_per_level: 0` when using `-c` option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bloaty.