Essential Go Profiling using go tool pprof  Suggest an edit

Set CPU/Block profile rate

// Sets the CPU profiling rate to hz samples per second
// If hz <= 0, SetCPUProfileRate turns off profiling

// Controls the fraction of goroutine blocking events that are reported in the blocking profile
// Rate = 1 includes every blocking event in the profile
// Rate <= 0 turns off profiling
  ↑ ↓ to navigate     ↵ to select     Esc to close