py-perf-analyzer

Community

Find CPU and memory bottlenecks in Python code.

Authorhaomingz
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Python performance profiling to identify CPU and memory bottlenecks and optimize slow scripts.

Core Features & Use Cases

  • CPU profiling with cProfile to locate hot functions.
  • Memory analysis with tracemalloc to reveal allocation hotspots and leaks.
  • Optional line-by-line profiling with line_profiler for precise timing.
  • Combined CPU + memory analytics with JSON output suitable for CI integration.

Quick Start

Run python scripts/perf_profile.py <script> [args] to profile your Python script and generate a detailed report.

Dependency Matrix

Required Modules

line_profiler

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: py-perf-analyzer
Download link: https://github.com/haomingz/kimi-skills/archive/main.zip#py-perf-analyzer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.