perf-prof

Analyze Linux system performance with over 30 specialized profilers.

119|27|Updated Dec 21, 2021
One-click install
npx skills add https://github.com/duanery/perf-prof --skill perf-prof-duanery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perf-prof
Source: https://github.com/duanery/perf-prof/tree/main/skills/perf-prof
Command: npx skills add https://github.com/duanery/perf-prof --skill perf-prof-duanery

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires libperf, libtraceevent, libbpf, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive toolset for analyzing Linux system performance, helping users identify bottlenecks, diagnose issues, and optimize system resources.

Core Features & Use Cases

  • Real-time Analysis: Process events in memory with low overhead and discard them immediately.
  • Broad Compatibility: Works with older Linux kernels and requires perf_event support.
  • Modular Architecture: Offers over 30 specialized profilers for various analysis scenarios.
  • Use Case: For instance, if you suspect a CPU bottleneck, you can use the 'profile' profiler to sample CPU usage and identify hotspots.

Quick Start

To profile CPU usage at 997Hz with a call graph, run the following command:

./perf-prof profile -F 997 -g

Frequently Asked Questions about perf-prof

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

FAQPage Schema
How do I analyze Linux system performance in real-time without high overhead?

Real-time performance analysis processes events in memory and discards them immediately to minimize overhead. This approach provides live system diagnostics while keeping resource consumption low.

Does Linux performance profiling require specific kernel support?

Linux performance profiling requires perf_event support in the kernel. The tool offers broad compatibility, working with older Linux kernels as long as perf_event functionality is enabled.

How do I profile CPU usage and identify hotspots on Linux?

To profile CPU usage, run the profile profiler with a specified frequency and call graph option, such as using the -F flag for frequency and -g for call graph generation. This samples CPU usage to identify hotspots.

What is the best way to handle different Linux performance analysis scenarios?

For various performance analysis scenarios, a modular architecture offers over 30 specialized profilers. This allows you to select a specific profiler tailored to diagnose distinct system bottlenecks.

What dependencies are needed for Linux system performance analysis?

Linux system performance analysis requires libperf, libtraceevent, and libbpf dependencies. These libraries provide the necessary performance monitoring, trace event parsing, and BPF program functionalities.