Heaptrack
heaptrack memory profiler skill for Linux. Use when tracking heap allocations, finding memory leaks, measuring peak heap usage, identifying allocation hotspots, or comparing allocation behaviour between runs. Activates on queries about heaptrack, heap profiling, memory allocation analysis, heaptrack_print, allocation hotspots, or memory leak detection with heaptrack.
Install
npx skills add mohitmishra786/low-level-dev-skills --skill heaptrackgit clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git /tmp/low-level-dev-skills
mkdir -p ~/.claude/skills
cp -r /tmp/low-level-dev-skills/skills/profilers/heaptrack ~/.claude/skills/heaptrackPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# heaptrack ## Purpose Guide agents through heaptrack for heap allocation profiling on Linux: recording allocation traces, analysing with heaptrack_print, identifying leaks and hotspots, and comparing runs. ## Triggers - "How do I find memory allocation hotspots in my C++ program?" - "My program uses too much memory — how do I find where?" - "How do I use heaptrack to detect memory leaks?" - "What is heaptrack and how does it differ from Valgrind massif?" - "How do I compare memory usage between two program versions?" - "heaptrack_print output — how do I interpret it?" ## Workflow ### 1. Installation ```bash # Ubuntu/Debian sudo apt-get install heaptrack heaptrack-gui # Fedora sudo dnf install heaptrack # Arch sudo pacman -S heaptrack # Build from source git clone https://github.com/KDE/heaptrack.git cmake -S heaptrack -B heaptrack-build -DCMAKE_BUILD_TYPE=Release cmake --build heaptrack-build -j$(nproc) ``` ### 2. Basic usage ```bash # Profile a program (generates heaptrack.<prog>.<pid>.zst) heaptrack ./myapp arg1 arg2 # Attach to running process heaptrack --pid 12345 # Analyse the trace file heaptrack_print heaptrack.myapp.12345.zst # GUI analysis (if heaptrack-gui installed) heaptrack_gui heaptrack.myapp.12345.zst ``` ### 3. Build for better profiling ```bash # Build with debug symbols (essential for readable backtraces) cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake --build build # Then profile heaptrack ./build/myapp ```
Details
- Skill name
heaptrack- Repository
- mohitmishra786/low-level-dev-skills
- Path
skills/profilers/heaptrack/SKILL.md- License
- MIT
- Repo updated
- 14 November 2026
FAQ
What does the Heaptrack skill do?
heaptrack memory profiler skill for Linux. Use when tracking heap allocations, finding memory leaks, measuring peak heap usage, identifying allocation hotspots, or comparing allocation behaviour between runs. Activates on queries about heaptrack, heap profiling, memory allocation analysis, heaptrack_print, allocation hotspots, or memory leak detection with heaptrack.
How do I install the Heaptrack skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add mohitmishra786/low-level-dev-skills --skill heaptrack. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Heaptrack popular?
It lives in mohitmishra786/low-level-dev-skills, which has 293 GitHub stars and 36 forks.
Related skills
Abi and Calling Conventions
293mohitmishra786/low-level-dev-skills
ABI and calling conventions skill for cross-language boundaries. Use when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Activates on queries about calling convention, ABI, System V AMD64, AAPCS, stack frame, variadic function, or FFI registers.
Adc Dac Baremetal
293mohitmishra786/low-level-dev-skills
Bare-metal ADC and DAC skill. Use when configuring analog sampling, DMA-driven ADC, calibration, or DAC output on MCUs. Activates on queries about ADC bare-metal, sampling time, DMA ADC, or DAC channel setup.
Af Xdp
293mohitmishra786/low-level-dev-skills
AF_XDP skill for high-performance XDP sockets. Use when creating AF_XDP sockets, configuring UMEM and XSK rings, XDP_REDIRECT programs, copy vs zero-copy mode, or comparing with DPDK. Activates on queries about AF_XDP, xsk_umem, XDP_REDIRECT, libbpf xsk, or zero-copy XDP.
Intel Vtune Amd Uprof
293mohitmishra786/low-level-dev-skills
Intel VTune and AMD uProf profiling skill for microarchitecture analysis. Use when analyzing hotspots, microarchitecture bottlenecks, memory access patterns, pipeline stalls, or using the roofline model. Covers VTune Community Edition (free) and AMD uProf as a free alternative. Activates on queries about VTune, uProf, microarchitecture analysis, pipeline stalls, memory bandwidth, roofline model, or hardware performance analysis.
GPU Memory Model
293mohitmishra786/low-level-dev-skills
GPU memory model skill for SIMT execution and memory hierarchy. Use when analyzing warp divergence, memory coalescing, shared memory bank conflicts, cache behavior, atomics, or occupancy tradeoffs. Activates on queries about SIMT, warp coalescing, bank conflicts, wavefront, GPU occupancy, or memory-bound kernels.
Kernel Concurrency
293mohitmishra786/low-level-dev-skills
Kernel concurrency skill for Linux locking and synchronization. Use when choosing spinlocks vs mutexes, using RCU, seqlocks, completions, or applying memory barriers in kernel code. Activates on queries about kernel spinlock, mutex, RCU, seqlock, memory barrier, or PREEMPT_RT locking.
Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.