Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 600 Bytes

File metadata and controls

36 lines (28 loc) · 600 Bytes

debug

debug binary size

  • check symbol size
# filter out undefined symbols
go tool nm -size mythosd | grep -v ' U ' | sort -nr | head -20
brew install go-size-analyzer
# or
go install github.com/Zxilly/go-size-analyzer/cmd/gsa@latest

cd ./build
gsa --web mythosd
# or
gsa --tui mythosd
gsa mythosd
  • included packages
go list -deps -f '{{.ImportPath}}' ./...

go list -deps -f '{{if not .Standard}}{{.ImportPath}}{{end}}' ./...
  • dependency chain
go mod graph
go mod why <module>