Chuyển đến nội dung
Skillpedia
Lập trình chung29k · #9595

performance-profiler

Skill này làm gì

Skill này giúp tìm các vấn đề hiệu năng trong ứng dụng Node.js, Python và Go, như trang chậm, rò rỉ bộ nhớ và bundle quá lớn. Skill dành cho lập trình viên muốn sửa các vấn đề về tốc độ dựa trên số đo.

Khi nào nên dùng

  • ✓Khi một endpoint hoặc trang chậm và bạn chưa biết nguyên nhân.
  • ✓Khi mức dùng bộ nhớ của một ứng dụng cứ tăng dần theo thời gian.
  • ✓Khi bundle của ứng dụng web tăng đáng kể sau khi thêm package.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/performance-profiler/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/performance-profiler/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Endpoint thanh toán của chúng tôi đang chậm. Tìm nút thắt và đo thay đổi sau khi chúng tôi sửa.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill đo ứng dụng trước, tìm các điểm chậm thường gặp như truy vấn nặng hoặc tải CPU, thực hiện một thay đổi, rồi đo lại để xác nhận cải thiện.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Performance Profiler

Tier: POWERFUL
Category: Engineering
Domain: Performance Engineering


Overview

Systematic performance profiling for Node.js, Python, and Go applications. Identifies CPU, memory, and I/O bottlenecks; generates flamegraphs; analyzes bundle sizes; optimizes database queries; detects memory leaks; and runs load tests with k6 and Artillery. Always measures before and after.

Core Capabilities

  • CPU profiling — flamegraphs for Node.js, py-spy for Python, pprof for Go
  • Memory profiling — heap snapshots, leak detection, GC pressure
  • Bundle analysis — webpack-bundle-analyzer, Next.js bundle analyzer
  • Database optimization — EXPLAIN ANALYZE, slow query log, N+1 detection
  • Load testing — k6 scripts, Artillery scenarios, ramp-up patterns
  • Before/after measurement — establish baseline, profile, optimize, verify

When to Use

  • App is slow and you don't know where the bottleneck is
  • P99 latency exceeds SLA before a release
  • Memory usage grows over time (suspected leak)
  • Bundle size increased after adding dependencies
  • Preparing for a traffic spike (load test before launch)
  • Database queries taking >100ms

Quick Start

# Analyze a project for performance risk indicators
python3 scripts/performance_profiler.py /path/to/project

# JSON output for CI integration
python3 scripts/performance_profiler.py /path/to/project --json

# Custom large-file threshold
python3 scripts/performance_profiler.py /path/to/project --large-file-threshold-kb 256

Golden Rule: Measure First

# Establish baseline BEFORE any optimization
# Record: P50, P95, P99 latency | RPS | error rate | memory usage

# Wrong: "I think the N+1 query is slow, let me fix it"
# Right: Profile → confirm bottleneck → fix → measure again → verify improvement

Node.js Profiling

→ See references/profiling-recipes.md for details

References

Câu hỏi thường gặp

Nó hỗ trợ những ngôn ngữ nào?

Nó hỗ trợ các ứng dụng Node.js, Python và Go.

Nó có kiểm tra được ứng dụng khi có nhiều người dùng không?

Có, nó có thể viết và chạy kiểm thử tải bằng k6 và Artillery.

Nó chỉ đoán vấn đề thôi sao?

Không, nó đo trước và sau mỗi thay đổi để bạn thấy hiệu quả thật.

Chi tiết

Mô tả gốc của tác giả

Use for a slow endpoint, memory leak, CPU spike, large bundle or performance budget in Node.js, Python or Go, before optimizing. Measures before and after with performance_profiler.py, flamegraphs and k6 load tests.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9595
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự