pprof
pprof is the profiler built into the Go runtime and exposed through net/http/pprof. It samples where CPU time and memory go so developers can identify performance bottlenecks through measurement rather than guesswork.
Minimal example
import _ "net/http/pprof"
http.ListenAndServe("127.0.0.1:6060", nil)