profile_process
Profile a specific Linux process using perf to collect performance data for flame graph generation. Specify PID, duration, frequency, and event.
Instructions
Profile a specific process using perf to collect performance data for flame graph generation. Requires perf tool to be installed on the system.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process ID to profile | |
| duration | No | Duration in seconds to collect data (default: 10) | |
| frequency | No | Sampling frequency in Hz (default: 99) | |
| event | No | Perf event to record (default: cpu-clock). Other options: cycles, instructions, cache-misses | cpu-clock |