Commit 4f489f59 authored by Matt Joiner's avatar Matt Joiner Committed by Andrew Gerrand

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/7351Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
parent de573f87
......@@ -228,11 +228,11 @@ var indexTmpl = template.Must(template.New("index").Parse(`<html>
profiles:<br>
<table>
{{range .}}
<tr><td align=right>{{.Count}}<td><a href="/debug/pprof/{{.Name}}?debug=1">{{.Name}}</a>
<tr><td align=right>{{.Count}}<td><a href="{{.Name}}?debug=1">{{.Name}}</a>
{{end}}
</table>
<br>
<a href="/debug/pprof/goroutine?debug=2">full goroutine stack dump</a><br>
<a href="goroutine?debug=2">full goroutine stack dump</a><br>
</body>
</html>
`))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment