Created
July 22, 2019 20:03
-
-
Save rdumont/b124f64649945ea8ca7c363483c03cc5 to your computer and use it in GitHub Desktop.
Profile Go micro-services in Kubernetes with pprof
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
r := http.NewServeMux() | |
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