Updates #22027.
Change-Id: I5a5bae77a744c7a2ecb75172846e6461a98ee8af
Reviewed-on: https://go-review.googlesource.com/83916
Reviewed-by: Andrew Bonventre <andybons@golang.org>
<p>
<pre>
-mux := http.NewServeMux()
-mux.HandleFunc("/custom_debug_path/profile", pprof.Profile)
-http.ListenAndServe(":7777", mux)
+package main
+
+import (
+ "log"
+ "net/http"
+ "net/http/pprof"
+)
+
+func main() {
+ mux := http.NewServeMux()
+ mux.HandleFunc("/custom_debug_path/profile", pprof.Profile)
+ log.Fatal(http.ListenAndServe(":7777", mux))
+}
</pre>
</p>