Command pprof

Pprof interprets and displays profiles of Go programs.

Usage:

go tool pprof binary profile

For more information, see https://blog.golang.org/profiling-go-programs .