What problem does it solve? Slow code is hard to fix without knowing where time and memory are actually spent. This Skill runs CPU and memory profilers on Python scripts and Rust binaries, then turns raw profiling data into a structured report with hotspots, root-cause analysis, and concrete optimization suggestions. ## Core Features & Use Cases - CPU Profiling: Run cProfile, line_profiler, or py-spy on Python code and perf/flamegraph on Rust binaries to find the hottest functions. - Memory Profiling: Use memory_profiler or heaptrack to detect large allocations and memory-heavy code paths. - Visualization: Generate flame graphs and call trees to make bottlenecks visible at a glance. - Use Case: A data pipeline script takes 5 minutes to run. Profile it, discover that a nested O(n²) loop in process_data consumes 45% of runtime, and get a suggested dict-lookup rewrite with an estimated 10x speedup. ## Quick Start Ask Claude to profile your Python script and report the top functions by time with optimization recommendations.