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: default avatarAndrew Gerrand <adg@golang.org>
parent de573f87
...@@ -228,11 +228,11 @@ var indexTmpl = template.Must(template.New("index").Parse(`<html> ...@@ -228,11 +228,11 @@ var indexTmpl = template.Must(template.New("index").Parse(`<html>
profiles:<br> profiles:<br>
<table> <table>
{{range .}} {{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}} {{end}}
</table> </table>
<br> <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> </body>
</html> </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