Importing net/http/pprof
adds HTTP endpoints to an existing HTTP or HTTPS server to serve profile files that can be viewed or charted with a command line tool.
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 your main function:
go http.ListenAndServe(":8550", nil)