Go 1 · Testing and profiling

Profile a running service

Capture 30 seconds of CPU profile from a service that exposes net/http/pprof.

go tool pprof http://localhost:6060/debug/pprof/profile

Official Go 1 documentation

More testing and profiling commands

All testing and profiling commands · Go 1 cheatsheet

Was this page helpful?