Agent skill
code-profiler
Use when asked to profile Python code performance, identify bottlenecks, measure execution time, or analyze function call statistics.
Install this agent skill to your Project
npx add-skill https://github.com/dkyazzentwatwa/chatgpt-skills/tree/main/code-profiler
SKILL.md
Code Profiler
Analyze Python code performance, identify bottlenecks, and optimize execution with comprehensive profiling tools.
Purpose
Performance analysis for:
- Bottleneck identification
- Function execution time measurement
- Memory usage profiling
- Call graph visualization
- Optimization validation
Features
- Time Profiling: Measure function execution times
- Line-by-Line Analysis: Profile each line of code
- Call Statistics: Function call counts and cumulative time
- Memory Profiling: Track memory allocation and usage
- Flamegraph Visualization: Visual call stack analysis
- Comparison: Before/after optimization comparison
Quick Start
from code_profiler import CodeProfiler
# Profile function
profiler = CodeProfiler()
profiler.profile_function(my_function, args=(arg1, arg2))
profiler.print_stats(top=10)
# Profile script
profiler.profile_script('script.py')
profiler.export_report('profile_report.html')
CLI Usage
# Profile Python script
python code_profiler.py script.py
# Profile with line-by-line analysis
python code_profiler.py script.py --line-by-line
# Export HTML report
python code_profiler.py script.py --output report.html
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
video-to-gif
Convert video clips to optimized GIFs with speed control, cropping, text overlays, and file size optimization. Create perfect GIFs for social media, documentation, and presentations.
audio-analyzer
Comprehensive audio analysis with waveform visualization, spectrogram, BPM detection, key detection, frequency analysis, and loudness metrics.
topic-modeler
Extract topics from text collections using LDA (Latent Dirichlet Allocation) with keyword extraction and topic visualization.
language-detector
Detect language of text with confidence scores, support for 50+ languages, and batch text classification.
image-filter-lab
Apply artistic filters to images including vintage, sepia, B&W, blur, sharpen, vignette, and color adjustments. Create custom filter presets.
qr-code-generator
Generate QR codes with URLs and UTM tracking. Exports PNG/SVG with captions. Use for single codes, batch generation, or marketing campaigns with tracking parameters.
Didn't find tool you were looking for?