Skip to content
Development
Command

/profile-memory

Capture and analyze memory usage of the application.

From plugin
rohitg00-claude-code-toolkit
2.8k199 skills138 agents199 commands
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

Command definition

profile-memory.md

/profile-memory - Profile Memory Usage

Capture and analyze memory usage of the application.

Steps

1. Detect the application runtime: Node.js, Python, Java, Go, or browser 2. Configure the profiling tool: Node.js --inspect, Python tracemalloc, Java VisualVM 3. Start the application with memory profiling enabled 4. Capture an initial heap snapshot as the baseline 5. Execute the workload or user scenario to profile 6. Capture a second heap snapshot after the workload completes 7. Compare the two snapshots to identify memory growth 8. Analyze retained objects: which objects are keeping memory alive 9. Identify the top 20 memory consumers by retained size 10. Check for common leak patterns: growing arrays, event listeners, closures, caches 11. Calculate total memory usage: heap used, heap total, RSS, external 12. Generate a memory profile report with growth analysis and object counts

Rules

  • Take multiple snapshots at intervals to detect gradual memory growth
  • Run the profiled scenario multiple times to distinguish leaks from normal allocation
  • Focus on retained size, not shallow size, for identifying actual memory impact
  • Include GC metrics: frequency, pause time, reclaimed memory
  • Profile under realistic load conditions, not idle state
  • Do not profile with debugger attached in production
  • Report memory in human-readable units (KB, MB, GB)
@rohitg00
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

2.8k40 skills138 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.8k
Star history of rohitg00/awesome-claude-code-toolkit on GitHub, a chart by star-history.com

Other commands on rohitg00-claude-code-toolkit.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command