mirror of
https://github.com/fosrl/newt.git
synced 2026-05-06 07:59:04 -05:00
[PR #269] [MERGED] feat(admin): Add pprof endpoints #2235
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/newt/pull/269
Author: @LaurenceJJones
Created: 3/12/2026
Status: ✅ Merged
Merged: 3/17/2026
Merged by: @oschwartz10612
Base:
dev← Head:feature/pprof-endpoint📝 Commits (1)
836144afeat(admin): Add pprof endpoints📊 Changes
1 file changed (+19 additions, -0 deletions)
View changed files
📝
main.go(+19 -0)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
To aid us in debugging user issues with memory or leaks we need to be able for the user to configure pprof, wait and then provide us the output files to see where memory/leaks occur in actual runtimes
How to test?
Providing environment
NEWT_PPROF_ENABLED=trueor-pprofruntime flag will bind pprof endpoints to the admin mux handler (user needs to also configure the admin listener also), this will allow users to generate pprof files for us to debug issues such as #268🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.