perf-profiler

Profile Python applications to identify CPU, memory, and GPU bottlenecks.

Updated May 5, 2026
One-click install
npx skills add https://github.com/iani-kuli/harness_bro --skill perf-profiler-iani-kuli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perf-profiler
Source: https://github.com/iani-kuli/harness_bro/tree/main/.claude/skills/curated/perf-profiler
Command: npx skills add https://github.com/iani-kuli/harness_bro --skill perf-profiler-iani-kuli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses performance degradation in Python applications, including high latency, excessive memory consumption, and inefficient GPU utilization.

Core Features & Use Cases

  • Multi-Tool Profiling: Automatically selects the optimal tool (cProfile, py-spy, scalene, or torch.profiler) based on the specific performance issue.
  • Bottleneck Identification: Provides a structured workflow to measure, profile, and isolate the exact lines of code causing slowdowns or memory leaks.
  • Use Case: If a machine learning training loop is running slower than expected, use this skill to profile the execution and determine if the bottleneck is in data loading, CPU preprocessing, or GPU kernel execution.

Quick Start

Use the perf-profiler skill to analyze the performance of script.py and identify the primary execution bottleneck.

Frequently Asked Questions about perf-profiler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify CPU, memory, and GPU bottlenecks in a Python application?

To identify Python performance bottlenecks, you can profile execution to isolate slow code lines, memory leaks, and GPU underutilization. This skill analyzes CPU, memory, and GPU constraints using targeted profiling tools to generate actionable reports.

What is the best way to profile a machine learning training loop running slower than expected?

Profiling a machine learning training loop involves measuring execution to determine if bottlenecks occur in data loading, CPU preprocessing, or GPU kernel execution. This skill isolates the exact code causing slow ML training.

How do I fix memory leaks and high latency in Python development environments?

To fix memory leaks and high latency in Python, profile the application to isolate the exact lines of code causing excessive memory consumption and slowdowns. This provides a structured workflow to measure and resolve performance degradation.

Does this profiling approach work with cProfile, py-spy, scalene, and torch.profiler?

Yes, this profiling approach supports cProfile, py-spy, scalene, and torch.profiler. It automatically selects the optimal profiling tool based on the specific performance issue identified within your Python application.

Do I need standard profiling libraries to generate performance metrics for Python?

Yes, you need integration with standard profiling libraries to generate performance metrics. This skill requires these libraries to measure execution, isolate code bottlenecks, and produce actionable performance reports.