Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 371 Bytes

debug.md

File metadata and controls

26 lines (18 loc) · 371 Bytes

To debug memory usage when building

GODEBUG=gctrace=1 go build ./cmd/server

You can also run this to check memory used when compiling:

go build -toolexec '/usr/bin/time -v'

# For macOS
go build -toolexec '/usr/bin/time -alh'

Clear cache

go clean --cache

Check storage used by cache

du -hs $(go env GOCACHE)