This is a very simple project to help demonstrate how to profile an application in Go.
-
Run the application
-
While it is running go to http://localhost:9000/debug/pprof
-
Click on the "profile" link and wait for the profile to complete (and download)
-
Run
go tool pprof -http localhost:8000 ~/Downloads/profile