skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
dkyazzentwatwa/chatgpt-skills56 installs

code-profiler

Use when asked to profile Python code performance, identify bottlenecks, measure execution time, or analyze function call statistics.

How do I install this agent skill?

npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill code-profiler
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides Python code profiling functionality. It uses the standard cProfile module and employs dynamic execution (exec) to run scripts for analysis, which is a necessary part of its core purpose.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerwarn

    3/3 files flagged

What does this agent skill do?

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

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/dkyazzentwatwa/chatgpt-skills/code-profiler">View code-profiler on skillZs</a>