Skip to content

Commit 9222f0e

Browse files
committed
Add pprof links to landing page
Make it easier for users to fetch and download pprof data for debugging. * Add a link to https://pprof.me for easy sharing. Signed-off-by: SuperQ <[email protected]>
1 parent d6919da commit 9222f0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

web/landing_page.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ <h1>{{.Name}}</h1>
1212
<main>
1313
{{if .Description}}<h2>{{.Description}}</h2>{{end}}
1414
{{if .Version}}<div>Version: {{.Version}}</div>{{end}}
15+
<div>
16+
Go pprof debugging profile data:
17+
<ul>
18+
<li><a href="debug/pprof/heap">heap usage (memory)</a>
19+
<li><a href="debug/pprof/profile">CPU usage (takes some time to gather)</a>
20+
</ul>
21+
Try posting these to <a href="https://pprof.me" target="_blank">pprof.me</a>
22+
</div>
1523
<div>
1624
<ul>
1725
{{ range .Links }}

0 commit comments

Comments
 (0)