[PR #4560] [MERGED] cmd/serve: pprof cpu and memory profile dumps to disk #17420

Closed
opened 2025-11-02 13:17:48 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4560
Author: @xor-gate
Created: 7/30/2018
Status: Merged
Merged: 8/7/2018
Merged by: @techknowlogick

Base: masterHead: issue-4450


📝 Commits (9)

  • 96ec67f cmd/serve: pprof memory profile dumps to disk (usefull for #4450)
  • 4808ca3 cmd/serve: Allow pprof per-key
  • 8893394 cmd/serve: Add setting for PPROF_DATA_PATH and break pprof code into its own module for reuse and clarity
  • 3c19346 Process last review comments
  • 0eaa416 Merge branch 'master' into issue-4450
  • da76139 cmd/serv: Fix typo
  • 0ce9b27 Merge branch 'issue-4450' of github.com:xor-gate/gitea into issue-4450
  • 5159a19 Merge branch 'master' into issue-4450
  • 0ab3e63 Merge branch 'master' into issue-4450

📊 Changes

4 files changed (+70 additions, -1 deletions)

View changed files

📝 cmd/serv.go (+16 -0)
📝 custom/conf/app.ini.sample (+7 -1)
modules/pprof/pprof.go (+42 -0)
📝 modules/setting/setting.go (+5 -0)

📄 Description

Tracing memory usage with pprof dumps to disk for serve command which can help to find memory problems with issue #4450


🔄 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/go-gitea/gitea/pull/4560 **Author:** [@xor-gate](https://github.com/xor-gate) **Created:** 7/30/2018 **Status:** ✅ Merged **Merged:** 8/7/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `issue-4450` --- ### 📝 Commits (9) - [`96ec67f`](https://github.com/go-gitea/gitea/commit/96ec67fa83e0dc2f2d437ef6c627b3b82edb1434) cmd/serve: pprof memory profile dumps to disk (usefull for #4450) - [`4808ca3`](https://github.com/go-gitea/gitea/commit/4808ca3f59314f20abf1b40b983d1a68cd0c94b4) cmd/serve: Allow pprof per-key - [`8893394`](https://github.com/go-gitea/gitea/commit/88933945b60794ba0ef430632b50509c7217b5ee) cmd/serve: Add setting for PPROF_DATA_PATH and break pprof code into its own module for reuse and clarity - [`3c19346`](https://github.com/go-gitea/gitea/commit/3c19346f4de6811875a3cb4713eece8b822e8645) Process last review comments - [`0eaa416`](https://github.com/go-gitea/gitea/commit/0eaa416b51818d001866ae69809a0abbf26fb86f) Merge branch 'master' into issue-4450 - [`da76139`](https://github.com/go-gitea/gitea/commit/da761397355b543472fb6c7801790f3ebefbaaac) cmd/serv: Fix typo - [`0ce9b27`](https://github.com/go-gitea/gitea/commit/0ce9b27a0a149af1c4e1a8d6034156eb18dfa39e) Merge branch 'issue-4450' of github.com:xor-gate/gitea into issue-4450 - [`5159a19`](https://github.com/go-gitea/gitea/commit/5159a19b0b5ff6e26851e984c30852ea997b2a54) Merge branch 'master' into issue-4450 - [`0ab3e63`](https://github.com/go-gitea/gitea/commit/0ab3e63a615c0bc372453aaa94d38582fe49ac7c) Merge branch 'master' into issue-4450 ### 📊 Changes **4 files changed** (+70 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/serv.go` (+16 -0) 📝 `custom/conf/app.ini.sample` (+7 -1) ➕ `modules/pprof/pprof.go` (+42 -0) 📝 `modules/setting/setting.go` (+5 -0) </details> ### 📄 Description Tracing memory usage with pprof dumps to disk for serve command which can help to find memory problems with issue #4450 --- <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 2025-11-02 13:17:48 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17420