Importing net/http/pprof adds HTTP endpoints to serve profile files that can be viewed or charted with a command line tool when the runtime.Set* functions are executed.
import _ "net/http/pprof"
If your application is not already running an http or https server, add net/http to the program imports and the following code to the start of the main function:
go http.ListenAndServe(":8550", nil)