perf_timechart
Generate an SVG timechart from perf.data to visualize CPU activity, task scheduling, and I/O events, with filtering by process or event type.
Instructions
Generate a timechart SVG showing CPU activity and task scheduling over time as a visual timeline.
Key parameters:
output: SVG file path (default: output.svg).
process: filter to specific process name(s).
power_only: show only CPU power state changes.
tasks_only: show only task scheduling.
io_only: show only I/O activity.
topology: include CPU topology.
width: SVG width in pixels.
Output: returns the SVG file path and size. Requires: perf timechart record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Don't complain, do it | |
| input | Yes | Path to perf.data file | |
| symfs | No | Symbol filesystem root | |
| width | No | SVG width in pixels | |
| output | No | Output SVG file path (default: output.svg) | |
| io_only | No | Show I/O-related events only | |
| process | No | Only show specific process(es) | |
| verbose | No | Verbosity level (0-2) | |
| proc_num | No | Number of processes to display | |
| topology | No | Show CPU topology | |
| callchain | No | Record callchain | |
| highlight | No | Highlight process by name | |
| power_only | No | Only show CPU power events | |
| tasks_only | No | Only show task events | |
| io_min_time | No | Minimum I/O time to display (ns) | |
| io_merge_dist | No | Merge I/O events within distance (ns) | |
| io_skip_eagain | No | Skip EAGAIN I/O events |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |