-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tech] pprof: dump malloc profile #18768
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #18096
What this PR does / why we need it:
pprof: dump malloc profile
PR Type
Enhancement
Description
cmd/mo-service/debug.go
file.saveMallocProfile
to handle the dumping of malloc profiles.saveProfiles
function.WriteProfileData
function inpkg/common/malloc/default.go
to facilitate writing malloc profile data.Changes walkthrough 📝
debug.go
Add malloc profile dumping functionality
cmd/mo-service/debug.go
bytes
,compress/gzip
,context
, andmalloc
.saveMallocProfile
function to dump malloc profile.saveProfiles
function.default.go
Implement WriteProfileData for malloc profiling
pkg/common/malloc/default.go
WriteProfileData
function to write malloc profile data.io
package for writing operations.