1PERF-TIMECHART(1)                 perf Manual                PERF-TIMECHART(1)
2
3
4

NAME

6       perf-timechart - Tool to visualize total system behavior during a
7       workload
8

SYNOPSIS

DESCRIPTION

11       There are two variants of perf timechart:
12
13           'perf timechart record <command>' to record the system level events
14           of an arbitrary workload. By default timechart records only scheduler
15           and CPU events (task switches, running times, CPU power states, etc),
16           but it's possible to record IO (disk, network) activity using -I argument.
17
18           'perf timechart' to turn a trace into a Scalable Vector Graphics file,
19           that can be viewed with popular SVG viewers such as 'Inkscape'. Depending
20           on the events in the perf.data file, timechart will contain scheduler/cpu
21           events or IO events.
22
23           In IO mode, every bar has two charts: upper and lower.
24           Upper bar shows incoming events (disk reads, ingress network packets).
25           Lower bar shows outgoing events (disk writes, egress network packets).
26           There are also poll bars which show how much time application spent
27           in poll/epoll/select syscalls.
28

TIMECHART OPTIONS

30       -o, --output=
31           Select the output file (default: output.svg)
32
33       -i, --input=
34           Select the input file (default: perf.data unless stdin is a fifo)
35
36       -w, --width=
37           Select the width of the SVG file (default: 1000)
38
39       -P, --power-only
40           Only output the CPU power section of the diagram
41
42       -T, --tasks-only
43           Don’t output processor state transitions
44
45       -p, --process
46           Select the processes to display, by name or PID
47
48       --symfs=<directory>
49           Look for files with symbols relative to this directory.
50
51       -n, --proc-num
52           Print task info for at least given number of tasks.
53
54       -t, --topology
55           Sort CPUs according to topology.
56
57       --highlight=<duration_nsecs|task_name>
58           Highlight tasks (using different color) that run more than given
59           duration or tasks with given name. If number is given it’s
60           interpreted as number of nanoseconds. If non-numeric string is
61           given it’s interpreted as task name.
62
63       --io-skip-eagain
64           Don’t draw EAGAIN IO events.
65
66       --io-min-time=<nsecs>
67           Draw small events as if they lasted min-time. Useful when you need
68           to see very small and fast IO. It’s possible to specify ms or us
69           suffix to specify time in milliseconds or microseconds. Default
70           value is 1ms.
71
72       --io-merge-dist=<nsecs>
73           Merge events that are merge-dist nanoseconds apart. Reduces number
74           of figures on the SVG and makes it more render-friendly. It’s
75           possible to specify ms or us suffix to specify time in milliseconds
76           or microseconds. Default value is 1us.
77

RECORD OPTIONS

79       -P, --power-only
80           Record only power-related events
81
82       -T, --tasks-only
83           Record only tasks-related events
84
85       -I, --io-only
86           Record only io-related events
87
88       -g, --callchain
89           Do call-graph (stack chain/backtrace) recording
90

EXAMPLES

92       $ perf timechart record git pull
93
94           [ perf record: Woken up 13 times to write data ]
95           [ perf record: Captured and wrote 4.253 MB perf.data (~185801 samples) ]
96
97       $ perf timechart
98
99           Written 10.2 seconds of trace to output.svg.
100
101       Record system-wide timechart:
102
103           $ perf timechart record
104
105           then generate timechart and highlight 'gcc' tasks:
106
107           $ perf timechart --highlight gcc
108
109       Record system-wide IO events:
110
111           $ perf timechart record -I
112
113           then generate timechart:
114
115           $ perf timechart
116

SEE ALSO

118       perf-record(1)
119
120
121
122perf                              06/18/2019                 PERF-TIMECHART(1)
Impressum