Slide 3
Slide 3 text
pprof
CPU, heap, blocks, routines pro lers provided by the Go runtime
Get pro ling data through
Benchmark tests
$ go test -v -run=^$ -bench=^ -cpuprofile=prof.cpu
$ go tool pprof [binary].test prof.cpu
pprof HTTP handlers
import _ net/http/pprof
$ go tool pprof http://localhost:8080/debug/pprof/profile
code
runtime.StartCPUPro le or runtime.WriteHeapPro le