Skillpedia
برمجة عامة29k · #9595

performance-profiler

ما الذي تفعله

تساعد هذه المهارة في إيجاد مشكلات الأداء في تطبيقات Node.js وPython وGo، مثل الصفحات البطيئة وتسريبات الذاكرة والحزم الكبيرة. وهي للمطورين الذين يريدون إصلاح مشكلات السرعة اعتمادًا على القياس.

متى تستخدمها

  • ✓عندما تكون نقطة نهاية أو صفحة بطيئة ولا تعرف السبب.
  • ✓عندما تزداد الذاكرة المستخدمة في التطبيق باستمرار مع الوقت.
  • ✓عندما يكبر حجم حزمة تطبيق الويب كثيرًا بعد إضافة حزم جديدة.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/performance-profiler/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“نقطة نهاية الدفع لدينا بطيئة. ابحث عن عنق الزجاجة وقس التحسن بعد الإصلاح.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تقيس المهارة التطبيق أولًا، وتبحث عن نقاط البطء الشائعة مثل الاستعلامات الثقيلة واستهلاك المعالج، ثم تجري تغييرًا وتقيس من جديد لتتأكد من التحسن.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

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

الأسئلة الشائعة

ما اللغات التي تدعمها؟

تدعم تطبيقات Node.js وPython وGo.

هل تستطيع اختبار تعامل التطبيق مع عدد كبير من المستخدمين؟

نعم، تستطيع كتابة اختبارات حمل وتشغيلها باستخدام k6 وArtillery.

هل تكتفي بالتخمين؟

لا، تقيس قبل كل تغيير وبعده حتى ترى الأثر الحقيقي.

التفاصيل

الوصف الأصلي من المؤلف

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

الشعبية

نجوم GitHub
29k
الترتيب
#9595
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة