Command pprof
Pprof interprets and displays profiles of Go programs.
Basic usage:
go tool pprof binary profile
For detailed usage information:
go tool pprof -h
For an example, see https://blog.golang.org/profiling-go-programs.