alloc-profile
Skill by ClickHouse
Analyzes allocation profiles in collapsed stack format from jemalloc, async-profiler or perf. Reports top allocating stacks, the operations that started them and the allocating code.
Install alloc-profile
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ClickHouse/ClickHouse /tmp/ClickHouse && mkdir -p ~/.claude/skills && cp -r /tmp/ClickHouse/.claude/skills/alloc-profile ~/.claude/skills/alloc-profileRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ClickHouse/ClickHouse /tmp/ClickHouse && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ClickHouse/.claude/skills/alloc-profile ~/.gemini/antigravity-cli/skills/alloc-profileAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The alloc-profile skill analyzes an allocation profile in collapsed stack format, as produced by jemalloc, async-profiler or perf. Each line holds a semicolon-separated stack followed by a value, usually bytes or samples. If no file path is given, the skill searches the current directory for .collapsed or .folded files and asks the user which one to analyze.
The skill runs three Python scripts in parallel. One summarizes total allocation and the top 25 stack traces. Another groups allocations by the outermost meaningful frame, which shows the operation that started them. A third groups allocations by the leaf frame, which shows the allocating code. The assistant then combines the results into a report and groups allocations into subsystems. It is aimed at users who want to understand memory usage from a profile file.
Written from the project's SKILL.md and checked against it.
What it can do
- Summary statisticsReports total allocated bytes, unique stack traces and the top 25 stack traces.
- Outermost frame aggregationGroups allocations by the outermost meaningful frame that initiated them.
- Leaf function aggregationGroups allocations by the innermost allocating function and its caller.
- Subsystem groupingGroups allocations into subsystems using the combined analysis results.
- Profile file discoveryFinds .collapsed or .folded files and asks which one to analyze.
What you need
- Bash access to run python3 scripts
- Python 3
Try asking
- Analyze memory.collapsed and find the top allocators
- Which operations allocate the most memory in this jemalloc profile?
- Group the allocations in profile.collapsed by subsystem
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/alloc-profile/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: TaskBash(ls:*)Bash(find:*)Bash(wc:*)Bash(python3:*)
-
SKILL.md17 KB
Alternatives to alloc-profile
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
alloc-profile: common questions
What profile formats does alloc-profile accept?
The source says it analyzes collapsed stack files from jemalloc, async-profiler or perf. Each line has a stack followed by a value, usually bytes or samples.
What does the outermost frame analysis show?
It shows the operation that initiated an allocation, such as loading data parts, executing a query or loading a dictionary. The source gives these as examples.
Can it analyze profiles from allocators other than jemalloc?
The skill description says it handles a jemalloc profile or other profiles in the same collapsed stack format.
How do I install alloc-profile?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is alloc-profile free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is alloc-profile safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to alloc-profile?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
