What problem does it solve?
This Skill helps you pinpoint and understand performance issues in your system by providing tools and techniques for CPU, memory, and I/O analysis.
Core Features & Use Cases
- CPU Profiling: Use
perf to record and analyze CPU usage, identify hot spots, and generate flame graphs.
- System Call Tracing: Employ
strace and ltrace to monitor system and library calls made by processes.
- Memory Analysis: Utilize
valgrind, pmap, and smem for memory leak detection, usage statistics, and mapping.
- System Monitoring: Leverage
vmstat, iostat, and pidstat for real-time system and process-level metrics.
- Use Case: When your application is running slowly, use this skill to generate a flame graph of its CPU activity to identify the functions consuming the most time.
Quick Start
Use the profiling skill to analyze the CPU usage of the process with PID 1234 for 30 seconds and generate a flame graph.