Profiles Python code for performance bottlenecks using cProfile, memory_profiler, or py-spy.
Profiles Python code for performance bottlenecks using cProfile, memory_profiler, or py-spy.
/plugin marketplace add athola/claude-night-market/plugin install minister@claude-night-marketProfiles Python code for performance bottlenecks using cProfile, memory_profiler, or py-spy.
/run-profiler script.py
Runs CPU profiling on the specified script.
/run-profiler --memory script.py
/run-profiler --line function_name script.py
/run-profiler script.py
Uses cProfile to identify slow functions.
/run-profiler --memory script.py
Uses memory_profiler to track allocations.
/run-profiler --line expensive_function script.py
Uses line_profiler for detailed analysis.
/run-profiler --pid 12345
Uses py-spy for profiling running processes.
# Profile with top 20 functions
/run-profiler --top 20 main.py
# Generate flamegraph
/run-profiler --flamegraph output.svg main.py
# Memory profile with threshold
/run-profiler --memory --threshold 100MB main.py
Uses the python-performance skill's profiling tools:
profiler-runner: cProfile and py-spy executionmemory-analyzer: Memory usage analysisbenchmark-suite: Comparative benchmarkingThis command helps identify and resolve performance bottlenecks efficiently.