Problem: I never remember the syntax for go tool pprof Solution: have these aliases saved. alias cpuprof="go test -v -run TestMyPerf -cpuprofile cpu.out; go tool pprof mypkg.test cpu.out" alias memprof="go test -v -run TestMyPerf -memprofile mem.out; go tool pprof --alloc_space mypkg.test mem.out"