[PR #269] [MERGED] feat(admin): Add pprof endpoints #1922

Closed
opened 2026-04-27 22:35:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: feature/pprof-endpoint


📝 Commits (1)

  • 836144a feat(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=true or -pprof runtime 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.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/newt/pull/269 **Author:** [@LaurenceJJones](https://github.com/LaurenceJJones) **Created:** 3/12/2026 **Status:** ✅ Merged **Merged:** 3/17/2026 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `dev` ← **Head:** `feature/pprof-endpoint` --- ### 📝 Commits (1) - [`836144a`](https://github.com/fosrl/newt/commit/836144aebf9336143dfcb29bb1656df03385520f) feat(admin): Add pprof endpoints ### 📊 Changes **1 file changed** (+19 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+19 -0) </details> ### 📄 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=true` or `-pprof` runtime 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-27 22:35:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#1922