79dad627
server: add pprof endpoint
This adds a pprof endpoint to all SourceHut APIs. It picks an OS-assigned port on localhost to run it on and prints this port to stdout. This ensures a unique port is selected even if several APIs are running on a single host.
Drew DeVault <drew@ddevault.org> — 2025-03-20 09:51:13 UTC
Commit 79dad627f9fe97a3c57609de87a9641a7aae9693 —
view raw patch
Parent(s):
ee0aeb76
| File | Status | + | − |
|---|---|---|---|
server/server.go
|
M | +8 |