From c2e96238207ac66f25beef412030b25588b9a533 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Tue, 16 Jan 2024 10:14:16 +0100 Subject: [PATCH] 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 --- web/landing_page.css | 5 +++++ web/landing_page.html | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/web/landing_page.css b/web/landing_page.css index 260bc8a0..0dd728a9 100644 --- a/web/landing_page.css +++ b/web/landing_page.css @@ -15,4 +15,9 @@ label { display: inline-block; width: {{.Form.Width}}em; } +#pprof { + border: black 2px solid; + padding: 1rem; + width: fit-content; +} {{.ExtraCSS}} diff --git a/web/landing_page.html b/web/landing_page.html index 4f2e1817..e1ac0aec 100644 --- a/web/landing_page.html +++ b/web/landing_page.html @@ -30,6 +30,14 @@

{{.Name}}

{{ end }} {{ .ExtraHTML }} +
+ Download a detailed report of resource usage (pprof format, from the Go runtime): + + To visualize and share profiles you can upload to pprof.me +