$ go test -bench=. -benchmem -cpuprofile=cpu.out -memprofile=mem.out -x .
$ go tool pprof 13_pprof_console.test cpu.out
$ go tool pprof 13_pprof_console.test mem.out$ go tool pprof -help$ go tool pprof -http :8090 binary cpu.out$ wrk -c100 -d2000s -t50 http://127.0.0.1:8080/
$ go tool pprof http://localhost:8080/debug/pprof/profile?seconds=5
$ go tool pprof http://localhost:8080/debug/pprof/goroutinesor
$ go tool pprof -http :8082 \
http://localhost:8081/debug/pprof/profile?seconds=5
$ go tool pprof -http :8082 \
http://localhost:8081/debug/pprof/heap?seconds=5go tool pprofhttps://golang.org/pkg/runtime/trace/
$ wrk -c100 -d2000s -t50 http://127.0.0.1:8080/
$ wget http://localhost:8080/debug/pprof/trace?seconds=5 -o trace.out
$ go tool trace trace?seconds=5