Agent skill

Alloc Profile

by timeplus-io in timeplus-io/proton

Analyze jemalloc or async-profiler allocation profiles in collapsed stack format.

Apache-2.0Auto-check passedDevelopment

Install Alloc Profile

skills CLI
$ npx skills add timeplus-io/proton --skill alloc-profile -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install timeplus-io/proton alloc-profile --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/timeplus-io/proton.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/alloc-profile .claude/skills/alloc-profile && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
alloc-profile
GitHub stars
2.3k
Token cost
~489 tokens
SKILL.md length
172 words
Files
2 (incl. scripts)
Skills in repo
7
Repo updated
First seen
Licence
Apache-2.0

At a glance

Analyze jemalloc or async-profiler allocation profiles in collapsed stack format.

  • Works in 4 steps: biggest operations by memory share → likely owning subsystem → likely next inspection target in code → …
  • The user mentions memory profiling
  • SKILL.md covers Inputs, Tooling, What the analyzer reports and Interpretation guidance, plus 2 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Alloc Profile is an agent skill from timeplus-io/proton. Analyze jemalloc or async-profiler allocation profiles in collapsed stack format. Make sure to use this skill whenever the user mentions memory profiling, heap analysis, allocation hotspots, jemalloc, async-profiler, collapsed stacks, .folded files, or asks about memory usage patterns.

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/analyze_alloc_profile.py`).

It sits in Development, covering Performance optimization. The repository describes itself as: The Fastest Unified Streaming SQL Engine in a Single C++ Binary. ⚡ Millisecond latency. 100+ GB/s throughput. Continuously compute real-time context from streams, logs, metrics… The licence is Apache-2.0.

When your agent uses it

  • The user mentions memory profiling
  • Allocation hotspots
  • Collapsed stacks
  • Asks about memory usage patterns

Example prompts

  • “/alloc-profile”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. biggest operations by memory share
  2. likely owning subsystem
  3. likely next inspection target in code
  4. whether the profile looks like steady-state memory, burst allocation, or leak-like retention

What it can do on your machine

Read from SKILL.md and the folder at commit 1c47e60. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Alloc Profile loads about 489 tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 172 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~489

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from timeplus-io/proton at commit 1c47e60, republished under its Apache-2.0 licence (© timeplus-io). 172 words, ~489 tokens.

Download SKILL.mdSave it as .claude/skills/alloc-profile/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
alloc-profile
description
Analyze jemalloc or async-profiler allocation profiles in collapsed stack format. Make sure to use this skill whenever the user mentions memory profiling, heap analysis, allocation hotspots, jemalloc, async-profiler, collapsed stacks, .folded files, or asks about memory usage patterns.

Allocation Profile

Inputs

  • $0 (optional): path to a .collapsed or .folded profile

If no path is given, search near the current directory:

bash
find . -maxdepth 4 \( -name "*.collapsed" -o -name "*.folded" \) | sort

Tooling

Use the bundled analyzer script:

bash
python3 .claude/skills/alloc-profile/scripts/analyze_alloc_profile.py <profile>

What the analyzer reports

  • Total samples/bytes and unique stack traces
  • Top stack traces
  • Top outermost meaningful frames
  • Top leaf allocation frames

This gives both:

  • "why did we allocate?" via outermost frames
  • "what code actually allocated?" via leaf frames

Interpretation guidance

  • Large outermost buckets often point to the higher-level operation to optimize first.
  • Large leaf buckets inside allocators or containers are usually symptoms; look one or two frames above for product code.
  • For streaming paths, pay special attention to joins, windows, aggregation state, and block materialization.
  • For historical paths, focus on scans, merges, deserialization, and sort/aggregation buffers.

Output expectations

Summarize:

  1. biggest operations by memory share
  2. likely owning subsystem
  3. likely next inspection target in code
  4. whether the profile looks like steady-state memory, burst allocation, or leak-like retention

© timeplus-io, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in .claude/skills/alloc-profile of timeplus-io/proton.

  • SKILL.md
  • scripts/analyze_alloc_profile.py

Open the folder on GitHubat commit 1c47e60

Compare with similar skills

Alloc Profile next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Alloc Profile compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Alloc Profile this skilltimeplus-io/proton2.3k—~489Automated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
LLM Torch Profiler Analysissgl-project/sglang37k2 repos~6.4kAutomated safety check: PassApache-2.0
Pycrazyguitar/pysheeet8.2k—~886Automated safety check: PassMIT
Cmux Debugging Guidemanaflow-ai/cmux28k1 repos~1.1kAutomated safety check: PassCustom licence
Electron Heap Snapshot Analysiskeybase/client9.3k—~875Automated safety check: PassBSD-3-Clause

Similar skills

  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • LLM Torch Profiler Analysis

    sgl-project/sglang

    Unified LLM torch-profiler triage skill for sglang, vllm, TensorRT-LLM, and TokenSpeed.

    37k GitHub starsUsed in 2 repos~6.4k tokens
    DevelopmentAuto-check passed
  • Py

    crazyguitar/pysheeet

    Comprehensive Python programming reference covering syntax, concurrency, networking, databases, ML/LLM development, and HPC.

    8.2k GitHub stars~886 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Cmux Debugging Guide

    manaflow-ai/cmux

    Covers debug logging, the Debug menu, profiling rules and runtime pitfalls for working on the cmux macOS terminal app.

    28k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Analyzes V8, Chrome and Electron .heapsnapshot files with Node scripts to find memory leaks, detached DOM nodes and the retainer paths that keep objects alive.

    9.3k GitHub stars~875 tokensUpdated today
    DevelopmentAuto-check passed
  • Runs controlled JMH experiments on the Caffeine cache to find shared contention and hot-path waste, then reviews correctness and returns a reviewable patch.

    18k GitHub stars~2.6k tokensUpdated 2 days ago
    DevelopmentAuto-check: notes

More from timeplus-io/proton

  • Create Worktree

    timeplus-io/proton

    Create a Proton git worktree with local submodule reuse. An agent skill from timeplus-io/proton.

    2.3k GitHub stars~812 tokensUpdated 18 days ago
    Auto-check passed
  • Build And Verify

    timeplus-io/proton

    Build, compile, run server/client/cluster, execute unit/stateless/SQL tests, verify results, and troubleshoot build/test failures.

    2.3k GitHub stars~1.3k tokensUpdated 18 days ago
    Auto-check passed
  • SQL Usage

    timeplus-io/proton

    Timeplus streaming SQL covering stream types, EMIT policies, window functions, JOINs, materialized views, external streams, and UDFs.

    2.3k GitHub stars~1.7k tokensUpdated 18 days ago
    Auto-check passed
  • CI Diagnostics

    timeplus-io/proton

    Diagnose Proton CI failures and performance comparison results from GitHub checks and uploaded reports.

    2.3k GitHub stars~685 tokensUpdated 18 days ago
    Auto-check passed
  • Cpp Coding

    timeplus-io/proton

    Write or review Timeplus/Proton C++20 code covering naming conventions, Proton fences, clang-format, IProcessor patterns, and checkpointing.

    2.3k GitHub stars~582 tokensUpdated 18 days ago
    Auto-check passed
  • Review

    timeplus-io/proton

    Review a Proton pull request or diff for correctness, streaming semantics, checkpointing, compatibility, and performance.

    2.3k GitHub stars~1.1k tokensUpdated 18 days ago
    Auto-check passed

Categories

Questions about Alloc Profile

What does Alloc Profile do?

Analyze jemalloc or async-profiler allocation profiles in collapsed stack format. Alloc Profile is an agent skill from timeplus-io/proton. Analyze jemalloc or async-profiler allocation profiles in collapsed stack format.

When should I use Alloc Profile?

Alloc Profile fits situations like: the user mentions memory profiling; allocation hotspots; collapsed stacks; asks about memory usage patterns.

How do I install Alloc Profile in Claude Code?

Run `npx skills add timeplus-io/proton --skill alloc-profile -a claude-code`. Or copy the skill folder (.claude/skills/alloc-profile in timeplus-io/proton) into .claude/skills/alloc-profile in your project. Claude Code loads it when a task matches its description.

How do I install Alloc Profile in Codex?

Run `npx skills add timeplus-io/proton --skill alloc-profile -a codex`. Or copy the skill folder (.claude/skills/alloc-profile in timeplus-io/proton) into .agents/skills/alloc-profile in your project. Codex loads it when a task matches its description.

Can I use Alloc Profile in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add timeplus-io/proton --skill alloc-profile -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/alloc-profile, .gemini/skills/alloc-profile, .github/skills/alloc-profile and .opencode/skills/alloc-profile in your project.

What does Alloc Profile need to run?

Going by SKILL.md and its folder, Alloc Profile needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Alloc Profile access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Alloc Profile safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Alloc Profile use?

Alloc Profile is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Alloc Profile use?

About 489 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Alloc Profile?

Skills that share tags, products or a category with Alloc Profile: Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), LLM Torch Profiler Analysis (sgl-project/sglang, 37k stars), Py (crazyguitar/pysheeet, 8.2k stars) and Cmux Debugging Guide (manaflow-ai/cmux, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Alloc Profile?

timeplus-io (a GitHub organization) maintains it in timeplus-io/proton, which has 2,265 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 20, 2026.

Source: timeplus-io/proton on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.