Created
October 27, 2020 14:00
-
-
Save 0xc0d/f3a32de18643cbb73289e35807ba771f to your computer and use it in GitHub Desktop.
net http pprof init
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 init() { | |
http.HandleFunc("/debug/pprof/", Index) | |
http.HandleFunc("/debug/pprof/cmdline", Cmdline) | |
http.HandleFunc("/debug/pprof/profile", Profile) | |
http.HandleFunc("/debug/pprof/symbol", Symbol) | |
http.HandleFunc("/debug/pprof/trace", Trace) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment