diff options
Diffstat (limited to 'tools/perf/Documentation/perf-timechart.txt')
-rw-r--r-- | tools/perf/Documentation/perf-timechart.txt | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/tools/perf/Documentation/perf-timechart.txt b/tools/perf/Documentation/perf-timechart.txt index 5e0f986dff38..df98d1c82688 100644 --- a/tools/perf/Documentation/perf-timechart.txt +++ b/tools/perf/Documentation/perf-timechart.txt | |||
@@ -15,10 +15,20 @@ DESCRIPTION | |||
15 | There are two variants of perf timechart: | 15 | There are two variants of perf timechart: |
16 | 16 | ||
17 | 'perf timechart record <command>' to record the system level events | 17 | 'perf timechart record <command>' to record the system level events |
18 | of an arbitrary workload. | 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. | ||
19 | 21 | ||
20 | 'perf timechart' to turn a trace into a Scalable Vector Graphics file, | 22 | 'perf timechart' to turn a trace into a Scalable Vector Graphics file, |
21 | that can be viewed with popular SVG viewers such as 'Inkscape'. | 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 | ||
25 | events or IO events. | ||
26 | |||
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. | ||
22 | 32 | ||
23 | TIMECHART OPTIONS | 33 | TIMECHART OPTIONS |
24 | ----------------- | 34 | ----------------- |
@@ -54,6 +64,19 @@ TIMECHART OPTIONS | |||
54 | duration or tasks with given name. If number is given it's interpreted | 64 | duration or tasks with given name. If number is given it's interpreted |
55 | as number of nanoseconds. If non-numeric string is given it's | 65 | as number of nanoseconds. If non-numeric string is given it's |
56 | interpreted as task name. | 66 | interpreted as task name. |
67 | --io-skip-eagain:: | ||
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. | ||
73 | Default value is 1ms. | ||
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. | ||
79 | Default value is 1us. | ||
57 | 80 | ||
58 | RECORD OPTIONS | 81 | RECORD OPTIONS |
59 | -------------- | 82 | -------------- |
@@ -63,6 +86,9 @@ RECORD OPTIONS | |||
63 | -T:: | 86 | -T:: |
64 | --tasks-only:: | 87 | --tasks-only:: |
65 | Record only tasks-related events | 88 | Record only tasks-related events |
89 | -I:: | ||
90 | --io-only:: | ||
91 | Record only io-related events | ||
66 | -g:: | 92 | -g:: |
67 | --callchain:: | 93 | --callchain:: |
68 | Do call-graph (stack chain/backtrace) recording | 94 | Do call-graph (stack chain/backtrace) recording |
@@ -87,6 +113,14 @@ Record system-wide timechart: | |||
87 | 113 | ||
88 | $ perf timechart --highlight gcc | 114 | $ perf timechart --highlight gcc |
89 | 115 | ||
116 | Record system-wide IO events: | ||
117 | |||
118 | $ perf timechart record -I | ||
119 | |||
120 | then generate timechart: | ||
121 | |||
122 | $ perf timechart | ||
123 | |||
90 | SEE ALSO | 124 | SEE ALSO |
91 | -------- | 125 | -------- |
92 | linkperf:perf-record[1] | 126 | linkperf:perf-record[1] |