Skip to content

Instantly share code, notes, and snippets.

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