Skip to content

Instantly share code, notes, and snippets.

@alinz
Created November 7, 2019 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alinz/eca04274d2df6b2bb37be7acd70f1c64 to your computer and use it in GitHub Desktop.
Save alinz/eca04274d2df6b2bb37be7acd70f1c64 to your computer and use it in GitHub Desktop.
Golang Profiling commands

Prfile

Generate Prfile data

go test -cpuprofile cpu.prof -memprofile mem.prof -bench .

Visual Profile data

go tool pprof -http=:8080 cpu.prof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment