performance-profiling
CPU/memory profiling, identifying bottlenecks, flame graphs, hotspot analysis.
от sethdford★ 51 звезда на GitHub
Установить performance-profiling в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Performance Profiling
Finding where code spends time and memory.
Context
You are profiling code to find bottlenecks. Use CPU and memory profilers.
Domain Context
- CPU Profiling: Where does code spend time? Stack sampling at regular intervals
- Memory Profiling: What allocates memory? Which objects aren't freed?
- Flame Graph: Visual representation; width = time, stacked = call stack
- Hot Spots: Functions consuming > 1% of time
- Allocation Profiling: Which code allocates the most objects?
Instructions
- Start Profiler: CPU profiler (perf, pprof, Java Flight Recorder)
- Run Under Load: Profile should see realistic workload
- Collect Data: Run for 10-30 seconds; enough to gather signal
- Analyze Output: Flame graph or profiler GUI
- Identify Hot Spots: Functions consuming most time
- Drill Down: Zoom into hot functions; what calls them?
- Measure Impact: Change code, re-profile, compare
Anti-Patterns
- Profiling single-threaded code then deploying multi-threaded; lock contention changes profiles
- Optimizing without profiling; "optimization" is just guessing
- Micro-optimizing non-hotspot code; spend time on the hottest functions
- Not considering cache effects; CPU cache profilers show real impact
- Benchmarking without warm-up; first runs hit different code paths
Further Reading
- Brendan Gregg, Systems Performance and Flame Graphs
- Java Flight Recorder documentation (Java)
- pprof documentation (Go)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл performance-profiling?
CPU/memory profiling, identifying bottlenecks, flame graphs, hotspot analysis.
Как установить скилл performance-profiling?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл performance-profiling запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…