Skip to content

feat: add JemallocProfCtl::dump_profile#32

Open
andylokandy wants to merge 2 commits intopolarsignals:mainfrom
andylokandy:dev
Open

feat: add JemallocProfCtl::dump_profile#32
andylokandy wants to merge 2 commits intopolarsignals:mainfrom
andylokandy:dev

Conversation

@andylokandy
Copy link
Copy Markdown

@andylokandy andylokandy commented Mar 13, 2026

Add a direct StackProfile dump API to JemallocProfCtl.

This introduces JemallocProfCtl::dump_profile(), which dumps the current jemalloc heap profile and returns the parsed StackProfile directly. This makes it possible for callers to inspect or transform the parsed allocation stacks without first going through pprof or flamegraph output.

I'm not sure whether JemallocProfCtl::dump_stack_profile or JemallocProfCtl::dump_profile is better.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 13, 2026

CLA assistant check
All committers have signed the CLA.

@andylokandy andylokandy changed the title feat: add JemallocProfCtl::dump_stack_profile feat: add JemallocProfCtl::dump_stack_profile Mar 13, 2026
@andylokandy andylokandy changed the title feat: add JemallocProfCtl::dump_stack_profile feat: add JemallocProfCtl::dump_profile Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants