Skip to content
Snippets Groups Projects
Commit 9360852d authored by Travis Ralston's avatar Travis Ralston
Browse files

Add commented out pprof endpoints

parent 08b90eba
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,14 @@ func Init() {
httpMux := http.NewServeMux()
httpMux.Handle("/", handler)
// pprof endpoints
//httpMux.HandleFunc("/debug/pprof", pprof.Index)
//httpMux.HandleFunc("/debug/pprof/heap", pprof.Index)
//httpMux.HandleFunc("/debug/pprof/allocs", pprof.Index)
//httpMux.HandleFunc("/debug/pprof/block", pprof.Index)
//httpMux.HandleFunc("/debug/pprof/profile", pprof.Index)
//httpMux.HandleFunc("/debug/pprof/trace", pprof.Index)
logrus.WithField("address", address).Info("Started up. Listening at http://" + address)
logrus.Fatal(http.ListenAndServe(address, httpMux))
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment