Skip to content
Kitbay
Skill

alloc-profile

Apache-2.0Updated on Nov 11, 202650,877GitHub stars

A maintainer skill in the ClickHouse repository for analysing a memory allocation profile saved in collapsed stack format, such as a jemalloc dump, where each line is a call stack and a byte count.

What the skill teaches

A maintainer skill in the ClickHouse repository for analysing a memory allocation profile saved in collapsed stack format, such as a jemalloc dump, where each line is a call stack and a byte count. The agent finds the file, then runs three background analyses at once: overall totals and the largest stacks, grouping by the outermost meaningful frame to show which operation started the allocation, and grouping by the allocation site and its caller. It writes a report with summary figures, the largest allocators, a subsystem breakdown as a text bar chart and three to five findings, then offers drill-downs into a subsystem, full stacks, keyword searches or a flame graph. Large files are handled only in subagents.

Capabilities

  • Summarise a collapsed-stack allocation profile
  • Group allocations by operation and call site
  • Break memory use down by subsystem
  • Render an allocation flame graph