performance-profiling

Diagnose runtime performance issues by profiling hotspots and analyzing before-and-after measurements.

9|3|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill performance-profiling-sir-chawakorn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performance-profiling
Source: https://github.com/Sir-chawakorn/sanook-cli/tree/main/skills/performance-profiling
Command: npx skills add https://github.com/Sir-chawakorn/sanook-cli --skill performance-profiling-sir-chawakorn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses performance bottlenecks by providing a structured, data-driven methodology to identify and resolve latency, resource exhaustion, and inefficient code execution.

Core Features & Use Cases

  • Evidence-Based Optimization: Uses profiling tools to identify actual hotspots rather than relying on intuition.
  • Comprehensive Diagnostics: Covers CPU, memory, database queries, and I/O blocking issues.
  • Use Case: When an API endpoint experiences high latency or memory spikes, this skill guides you through capturing a baseline, profiling the execution, applying targeted fixes, and verifying the improvements with quantitative data.

Quick Start

Use the performance-profiling skill to analyze the current latency of the user authentication endpoint and identify the primary bottleneck.

Frequently Asked Questions about performance-profiling

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

FAQPage Schema
How do I diagnose high latency in an API endpoint?

To diagnose high latency in an API endpoint, capture a baseline measurement, profile the execution to identify bottlenecks, and apply targeted fixes. This structured approach ensures optimizations are based on evidence rather than intuition.

What is the best way to find CPU spikes and memory leaks during runtime?

Finding CPU spikes and memory leaks requires systematic profiling and measurement during runtime. By using standard profiling tools, you can identify exact resource exhaustion hotspots and verify improvements with quantitative before-and-after analysis.

How do I resolve inefficient database queries causing performance bottlenecks?

Resolving inefficient database queries involves profiling the execution to pinpoint slow operations, applying targeted optimizations, and verifying improvements through quantitative data. This ensures the bottleneck is actually resolved.

When do I need to use profiling tools for system optimization?

You need to use profiling tools for system optimization when you experience high latency, memory spikes, CPU spikes, or inefficient database queries. Profiling provides evidence-based diagnostics to identify actual hotspots rather than relying on intuition.

How to verify optimization effectiveness after fixing a performance bottleneck?

To verify optimization effectiveness after fixing a performance bottleneck, perform quantitative before-and-after analysis. By comparing baseline measurements with post-fix profiling data, you ensure the code execution improvements are validated.

Can I use this performance profiling method for I/O blocking issues?

Yes, you can use this performance profiling method for I/O blocking issues. The comprehensive diagnostics cover CPU, memory, database queries, and I/O blocking, providing a data-driven methodology to resolve latency and inefficient execution.