profiling

Profile CPU and memory usage with perf, valgrind, and strace.

1|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/ryukyagamilight/terminal-skills --skill profiling-ryukyagamilight
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: profiling
Source: https://github.com/ryukyagamilight/terminal-skills/tree/main/performance/profiling
Command: npx skills add https://github.com/ryukyagamilight/terminal-skills --skill profiling-ryukyagamilight

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify and diagnose performance issues in your system by providing tools for CPU and memory profiling, tracing system calls, and generating performance visualizations.

Core Features & Use Cases

  • CPU Profiling: Analyze CPU usage with tools like perf and generate flame graphs.
  • Memory Analysis: Detect memory leaks and analyze memory usage with valgrind and pmap.
  • System Call Tracing: Understand process interactions with strace and ltrace.
  • Use Case: Troubleshoot a slow-running application by using perf to find CPU hotspots and strace to identify inefficient system calls.

Quick Start

Use the profiling skill to analyze CPU usage for the process with PID 1234 for 30 seconds.

Frequently Asked Questions about profiling

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

FAQPage Schema
How do I diagnose CPU performance bottlenecks in a slow-running application?

Analyze memory usage and detect memory leaks using valgrind and pmap. These tools help identify inefficient memory allocation and potential leaks causing performance degradation in your applications.

How do I trace system calls to understand inefficient process interactions?

Generate flame graphs from perf data to visualize CPU usage and identify hotspots. This visual representation makes it easier to locate resource-intensive functions within your system or application.

Do I need to install specific tools to use this CPU and memory profiling capability?

Yes, you need to install tools like perf, strace, valgrind, and FlameGraph utilities. These external dependencies are required to perform the system and application performance profiling tasks.

How do I analyze CPU usage for a specific process ID for a set duration?

Analyze CPU usage for a specific process ID by running the profiling skill with the target PID and duration. For example, you can profile process 1234 for 30 seconds to capture its resource utilization.