

goweight - A tool to analyze and troubleshoot a Go binary size.
source link: https://www.tuicool.com/articles/hit/eaARNvY
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

goweight
A tool to analyze and troubleshoot a Go binary size.
For more, see this blog post
:white_check_mark: Get a breakdown of all modules inside a binary
:white_check_mark: Supports Go 1.11 modules
:white_check_mark: Output as JSON for tracking and/or monitoring as part of CI
Quick Start
$ go get github.com/jondot/goweight $ cd current-project $ goweight
As an example, here's what goweight
has to say about itself:
$ ./goweight 3.0 MB runtime 1.6 MB net 1.4 MB reflect 1.3 MB gopkg.in/alecthomas/kingpin.v2 870 kB math/big 668 kB github.com/alecthomas/template 628 kB syscall 626 kB text/template 550 kB go/ast 546 kB encoding/json 509 kB text/template/parse 495 kB github.com/alecthomas/template/parse 424 kB time 402 kB regexp/syntax 395 kB golang_org/x/net/dns/dnsmessage 388 kB fmt
Thanks:
To all Contributors - you make this happen, thanks!
Copyright
Copyright (c) 2018 @jondot . See LICENSE for further details.
Recommend
-
48
README.md ...
-
17
Minimizing Rust Binary Size Build Status Travis This repository demonstrates how to minimize the size of a Rust binary. By default, Rust optimizes for execution speed rather than binary size, s...
-
15
SizeBench: a new tool for analyzing Windows binary size Austin September 27th, 2021 We’ve recently released a new tool...
-
9
6 Tools and Techniques to Analyze Webpack Bundle SizeDifferent ways to analyze Webpack bundle sizeJavaScript is heavily used in modern web development. And we use tools like Webpack to bundle...
-
7
If you have ever written in Go, then the size of the resulting binaries could not escape your attention. Of course, in...
-
4
Trickery to Tame Big WebAssembly Binaries by @bwasti In light of the extremely popular
-
5
Size of a Binary TreeSkip to content
-
4
The run-time, compile-time, binary size triangle Sandor Dargo 1 day ago2023-01-04T00:00:00+01:00Often we start software development, we only care about writing some code. Or actually about writing the most a...
-
7
Reducing Tailscale’s binary size on macOS Mihai Parparita on February 16, 2023
-
6
Sandor Dargo 11 hours ago2023-03-29T00:00:00+02:00 11 minIn this series of articles about binary sizes,
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK