Core

/bin/util/view-binary-size.sh (241 B)

 1
2
3
4
5
6
7
8
9
10
#!/bin/bash

## Visualizes space usage for the release binary

set -euo pipefail
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $dir/../..

make build-release
go tool nm -size build/release/{{{ .Exec }}} | c++filt > ./tmp/nm.txt