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 Don't complain, do it.
57 Look for files with symbols relative to this directory.
60 Print task info for at least given number of tasks.
63 Sort CPUs according to topology.
64 --highlight=<duration_nsecs|task_name>::
65 Highlight tasks (using different color) that run more than given
66 duration or tasks with given name. If number is given it's interpreted
67 as number of nanoseconds. If non-numeric string is given it's
68 interpreted as task name.
70 Don't draw EAGAIN IO events.
71 --io-min-time=<nsecs>::
72 Draw small events as if they lasted min-time. Useful when you need
73 to see very small and fast IO. It's possible to specify ms or us
74 suffix to specify time in milliseconds or microseconds.
76 --io-merge-dist=<nsecs>::
77 Merge events that are merge-dist nanoseconds apart.
78 Reduces number of figures on the SVG and makes it more render-friendly.
79 It's possible to specify ms or us suffix to specify time in
80 milliseconds or microseconds.
87 Record only power-related events
90 Record only tasks-related events
93 Record only io-related events
96 Do call-graph (stack chain/backtrace) recording
101 $ perf timechart record git pull
103 [ perf record: Woken up 13 times to write data ]
104 [ perf record: Captured and wrote 4.253 MB perf.data (~185801 samples) ]
108 Written 10.2 seconds of trace to output.svg.
110 Record system-wide timechart:
112 $ perf timechart record
114 then generate timechart and highlight 'gcc' tasks:
116 $ perf timechart --highlight gcc
118 Record system-wide IO events:
120 $ perf timechart record -I
122 then generate timechart:
128 linkperf:perf-record[1]