Skip to content
Development
Skill

/memory-profiler

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.

BOOST
From plugin
khanelinix
34750 skills10 agents6 commands
Install
$ npx -y skills add khaneliman/khanelinix --skill memory-profiler --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/memory-profiler

Context preview

The summary Claude sees to decide when to auto-load this skill.

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.

SKILL.md

memory-profiler.SKILL.md
name: memory-profiler
description: 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.
metadata:
  disable-model-selection: "true"

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](references/cpp.md) for Valgrind, Heaptrack,

Memory Pools, and SSO.

  • **Rust**: See [references/rust.md](references/rust.md) for Jemallocator, Dhat,

Collection Bounding, Cow, and Arc.

  • **TypeScript & Node.js**: See [references/node.md](references/node.md) for V8

Inspector, Clinic.js, Object Pooling, and Closure scope mitigation.

  • **.NET (C#)**: See [references/dotnet.md](references/dotnet.md) for

dotnet-counters, dotnet-gcdump, ArrayPool, and struct conversions.

  • **Python**: See [references/python.md](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.

Read more
Ships withkhanelinix

Run packages directly with: Or install from the packages output. For example:

Get the whole plugin

Other skills on khanelinix.