profile - Profile Code to Identify Performance Bottlenecks
Profiles code execution speed to identify performance bottlenecks
Tags
Updated: 2026-02-12Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Ask user for script to profile
- Wrap code in timer
- Run cProfile command
- Run line profiler
- Analyze profiling data
- Summarize time consumption
- Suggest optimizations
Inputs
- Python script
- Function call
- Profiling tools
- Timer functions
Outputs
- Profiling report
- Performance summary
- Optimization suggestions
Requirements
- Python environment
- cProfile module
- Optional: line_profiler
