go test -run=. -bench=. -cpuprofile=cpu.out -benchmem -memprofile=mem.out -trace=trace.out go tool pprof -http :8080 cpu.out go tool pprof -http :8081 mem.out go tool trace trace.out go tool pprof $FILENAME.test cpu.out # (pprof) list rm cpu.out mem.out trace.out *.test