Skip to content

Instantly share code, notes, and snippets.

@rdumont
Created July 22, 2019 20:04
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 rdumont/e2446712c33dbc852e102a6ac7df4e1e to your computer and use it in GitHub Desktop.
Save rdumont/e2446712c33dbc852e102a6ac7df4e1e to your computer and use it in GitHub Desktop.
Profile Go micro-services in Kubernetes with pprof
func main() {
r := gin.New()
r.GET("/", serveHTTP)
r.Any("/debug/*path", gin.WrapH(http.DefaultServeMux))
http.ListenAndServe(":8080", r)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment