From: Matt Joiner Date: Wed, 11 Mar 2015 06:52:57 +0000 (+1100) Subject: net/http/pprof: Use relative links to profiles in index html X-Git-Tag: go1.5beta1~1622 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4f489f59c28aa9d8e6114132869e49b0734bc6ec;p=gostls13.git net/http/pprof: Use relative links to profiles in index html This allows /debug/pprof/ and descendents to be used through http.StripPrefix and other path rewriting handlers. Change-Id: I53673876c107bbfaf430123ead78e6524b42ac21 Reviewed-on: https://go-review.googlesource.com/7351 Reviewed-by: Andrew Gerrand --- diff --git a/src/net/http/pprof/pprof.go b/src/net/http/pprof/pprof.go index f5a352da41..61ac67f3b1 100644 --- a/src/net/http/pprof/pprof.go +++ b/src/net/http/pprof/pprof.go @@ -228,11 +228,11 @@ var indexTmpl = template.Must(template.New("index").Parse(` profiles:
{{range .}} -
{{.Count}}{{.Name}} +
{{.Count}}{{.Name}} {{end}}

-full goroutine stack dump
+full goroutine stack dump
`))