Skip to content

Commit

Permalink
Add pprof links to landing page
Browse files Browse the repository at this point in the history
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 <superq@gmail.com>
  • Loading branch information
SuperQ committed Jan 16, 2024
1 parent d6919da commit 9222f0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ <h1>{{.Name}}</h1>
<main>
{{if .Description}}<h2>{{.Description}}</h2>{{end}}
{{if .Version}}<div>Version: {{.Version}}</div>{{end}}
<div>
Go pprof debugging profile data:
<ul>
<li><a href="debug/pprof/heap">heap usage (memory)</a>
<li><a href="debug/pprof/profile">CPU usage (takes some time to gather)</a>
</ul>
Try posting these to <a href="https://pprof.me" target="_blank">pprof.me</a>
</div>
<div>
<ul>
{{ range .Links }}
Expand Down

0 comments on commit 9222f0e

Please sign in to comment.