6 perf-timechart - Tool to visualize total system behavior during a workload
11 'perf timechart' [<timechart options>] {record} [<record options>]
15 There are two variants of perf timechart:
17 'perf timechart record <command>' to record the system level events
18 of an arbitrary workload. By default timechart records only scheduler
19 and CPU events (task switches, running times, CPU power states, etc),
20 but it's possible to record IO (disk, network) activity using -I argument.
22 'perf timechart' to turn a trace into a Scalable Vector Graphics file,
23 that can be viewed with popular SVG viewers such as 'Inkscape'. Depending
24 on the events in the perf.data file, timechart will contain scheduler/cpu
27 In IO mode, every bar has two charts: upper and lower.
28 Upper bar shows incoming events (disk reads, ingress network packets).
29 Lower bar shows outgoing events (disk writes, egress network packets).
30 There are also poll bars which show how much time application spent
31 in poll/epoll/select syscalls.
37 Select the output file (default: output.svg)
40 Select the input file (default: perf.data unless stdin is a fifo)
43 Select the width of the SVG file (default: 1000)
46 Only output the CPU power section of the diagram
49 Don't output processor state transitions
52 Select the processes to display, by name or PID
55 Look for files with symbols relative to this directory.
58 Print task info for at least given number of tasks.
61 Sort CPUs according to topology.
62 --highlight=<duration_nsecs|task_name>::
63 Highlight tasks (using different color) that run more than given
64 duration or tasks with given name. If number is given it's interpreted
65 as number of nanoseconds. If non-numeric string is given it's
66 interpreted as task name.
68 Don't draw EAGAIN IO events.
69 --io-min-time=<nsecs>::
70 Draw small events as if they lasted min-time. Useful when you need
71 to see very small and fast IO. It's possible to specify ms or us
72 suffix to specify time in milliseconds or microseconds.
74 --io-merge-dist=<nsecs>::
75 Merge events that are merge-dist nanoseconds apart.
76 Reduces number of figures on the SVG and makes it more render-friendly.
77 It's possible to specify ms or us suffix to specify time in
78 milliseconds or microseconds.
85 Record only power-related events
88 Record only tasks-related events
91 Record only io-related events
94 Do call-graph (stack chain/backtrace) recording
99 $ perf timechart record git pull
101 [ perf record: Woken up 13 times to write data ]
102 [ perf record: Captured and wrote 4.253 MB perf.data (~185801 samples) ]
106 Written 10.2 seconds of trace to output.svg.
108 Record system-wide timechart:
110 $ perf timechart record
112 then generate timechart and highlight 'gcc' tasks:
114 $ perf timechart --highlight gcc
116 Record system-wide IO events:
118 $ perf timechart record -I
120 then generate timechart:
126 linkperf:perf-record[1]