CClaude Code Catalog
All Skills

Performance Profiler

CodingAdvanced

Analyzes function execution time, memory usage, bundle size, and more to identify performance bottlenecks and provide prioritized, actionable optimization recommendations.

Trigger/perf
FrequencyAs needed

Frontend developer? Run /perf to analyze bundle size and rendering performance in one pass

Backend developer? Quickly find bottlenecks when API response times are slow

PerformanceOptimizationProfilingBundle

How It Works

Run /perf [file or endpoint]
Phase 1: 3 analyses in parallel
complexity
Analyze time complexity
memory-check
Check memory patterns
bundle-audit
Analyze bundle/loading
Prioritize bottlenecks + generate optimized code
Bottleneck report + optimized code

Skill Code

# Performance Profiler Skill ## Trigger: /perf [file or endpoint] When invoked: 1. Static analysis: - Time complexity of functions (O notation) - Nested loops and recursive calls - Unnecessary re-renders (React) - N+1 query patterns (backend) - Large bundle imports 2. Identify bottlenecks: - Rank by estimated impact - Show the specific code section 3. Output format: --- ## ⚡ Performance Report ### Bottlenecks Found | # | Location | Issue | Impact | Fix Effort | |---|----------|-------|--------|-----------| | 1 | `file:line` | [issue] | 🔴 High | Low | | 2 | `file:line` | [issue] | 🟡 Med | Med | ### Fix #1: [Issue Name] **Before** (O(n²)): ``` [current code] ``` **After** (O(n)): ``` [optimized code] ``` **Expected improvement**: ~[X]x faster ### Bundle Analysis (if frontend) - Total: [X] KB → [Y] KB after tree-shaking - Largest: [package] ([size]) - Suggestion: dynamic import [package] ---

Copy and paste into your CLAUDE.md to start using immediately.

How Performance Profiler Works

Performance Profiler analyzes your code for computational bottlenecks, memory leaks, unnecessary re-renders, and bundle size issues, then ranks optimization opportunities by impact and provides concrete implementation steps.

When to Use Performance Profiler

Critical when your application starts showing performance degradation in production — it pinpoints the exact functions and patterns causing slowdowns rather than requiring you to guess and iterate.

Key Strengths

  • Identifies bottlenecks across CPU, memory, and bundle dimensions
  • Ranks optimizations by expected impact to guide priority
  • Provides concrete code changes, not just general advice
  • Covers both frontend rendering and backend processing patterns

Same Category

Coding View All

Popular in Other Categories