khaneliman/khanelinix/memory-profiler
Claude Code and agent skill by khaneliman/khanelinix
- community
Checking that the SKILL.md file is still in the repository.
Diagnose memory inefficiencies, capture high-resolution memory profiles, and execute architectural refactoring across C++, Rust, TypeScript/Node.js, .NET, and Python. Use when troubleshooting memory leaks, out-of-memory (OOM) errors, or heap fragmentation.
Install
npx vskill@latest install khaneliman/khanelinix/memory-profilerSKILL.md
The same SKILL.md was published earlier as khaneliman/khanelinix/memory-profiler.
Memory Profiler
This skill provides a framework for diagnosing memory inefficiencies, capturing memory profiles, and refactoring systems across several programming languages.
Core Concepts
- Memory Wall: Speed and efficiency are constrained by memory spatial
locality, access patterns, and allocation overhead.
- Fragmentation: Frequent allocations/deallocations cause heap memory to
fragment, forcing OS to allocate additional pages.
- Data-Oriented Design (DOD): Refactoring from Array of Structures (AoS) to
Structure of Arrays (SoA) guarantees homogenous data fields are packed tightly, optimizing CPU cache usage and minimizing RAM latency.
Language Specific Guides
For instructions on memory profiling, tooling workflows, and refactoring strategies for a specific language, load the corresponding reference document:
- C++: See references/cpp.md for Valgrind, Heaptrack,
Memory Pools, and SSO.
- Rust: See references/rust.md for Jemallocator, Dhat,
Collection Bounding, Cow, and Arc.
- TypeScript & Node.js: See references/node.md for V8
Inspector, Clinic.js, Object Pooling, and Closure scope mitigation.
- .NET (C#): See references/dotnet.md for
dotnet-counters, dotnet-gcdump, ArrayPool, and struct conversions.
- Python: See references/python.md for Tracemalloc,
Memray, __slots__, Generators, and String Interning.
Use these files to perform high-level memory analysis, locate leaks, and apply the appropriate refactoring pattern.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmodules/common/ai-tools/skills/memory-profiler/SKILL.md
Popularity
- Repository stars
- 342
- Repository forks
- 18
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/khaneliman/khanelinix/memory-profiler)