Profile programs at the function/method level to identify performance hotspots, bottlenecks, and optimization opportunities. Records execution time, memory usage, and call frequency for each interval. Generates actionable recommendations and visualizations. Use when users need to (1) analyze program performance, (2) identify slow functions or bottlenecks, (3) optimize execution time or memory usage, (4) profile Python, Java, or C/C++ programs with test cases or workload scenarios, or (5) generate performance reports with flame graphs and recommendations.
91
86%
Does it follow best practices?
Impact
99%
1.23xAverage score across 3 eval scenarios
Passed
No known issues
Python profiling workflow with visualization
Uses profile_python.py
0%
100%
Produces profile_results.json
100%
100%
Runs generate_visualization.py
0%
100%
Produces profile_report.html
100%
100%
Reports top hotspots with % impact
100%
83%
Identifies compute_discount as hotspot
100%
100%
Specific optimization suggestions
100%
100%
Quick win identified
50%
100%
Profile-first approach
100%
100%
80/20 focus on hotspots
90%
100%
Before/after optimization comparison workflow
Uses profile_python.py for original
80%
100%
Saves original results as before.json
100%
100%
Uses profile_python.py for refactored
80%
100%
Saves refactored results as after.json
100%
100%
Compares hotspots across versions
100%
100%
Quantifies total execution time change
100%
100%
Reports % of total time per hotspot
60%
100%
Addresses string-building claim
100%
100%
Measurement-based conclusions
100%
100%
Memory leak investigation and recommendations
Uses profile_python.py
0%
100%
Produces profile_results.json
40%
100%
References memory_usage section
58%
100%
Identifies top memory locations
100%
100%
Root cause explanation
100%
100%
Recommends generators
100%
100%
Recommends object pooling or cleanup
100%
100%
Two or more concrete recommendations
100%
100%
Measurement-driven analysis
100%
100%
Does NOT use alternative memory profilers
100%
100%
0f00a4f
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.