aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Documentation
diff options
context:
space:
mode:
authorStanislav Fomichev <stfomichev@yandex-team.ru>2014-07-08 12:03:41 -0400
committerJiri Olsa <jolsa@kernel.org>2014-07-09 18:22:54 -0400
commitb97b59b93d10a54022afb06d5725d7aa55d98dd7 (patch)
tree8ded0d1011a71fc526b1d2d1a63005950669d81d /tools/perf/Documentation
parentf8dda74fb4139f026571b46d8d17f67e75aa157c (diff)
perf timechart: Implement IO mode
Currently, timechart records only scheduler and CPU events (task switches, running times, CPU power states, etc); this commit adds IO mode which makes it possible to record IO (disk, network) activity. In this mode perf timechart will generate SVG with IO charts (writes, reads, tx, rx, polls). Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru> Acked-by: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/n/1404835423-23098-3-git-send-email-stfomichev@yandex-team.ru Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/Documentation')
-rw-r--r--tools/perf/Documentation/perf-timechart.txt25
1 files changed, 23 insertions, 2 deletions
diff --git a/tools/perf/Documentation/perf-timechart.txt b/tools/perf/Documentation/perf-timechart.txt
index 5e0f986dff38..ec6b46c7bca0 100644
--- a/tools/perf/Documentation/perf-timechart.txt
+++ b/tools/perf/Documentation/perf-timechart.txt
@@ -15,10 +15,20 @@ DESCRIPTION
15There are two variants of perf timechart: 15There 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
23TIMECHART OPTIONS 33TIMECHART OPTIONS
24----------------- 34-----------------
@@ -63,6 +73,9 @@ RECORD OPTIONS
63-T:: 73-T::
64--tasks-only:: 74--tasks-only::
65 Record only tasks-related events 75 Record only tasks-related events
76-I::
77--io-only::
78 Record only io-related events
66-g:: 79-g::
67--callchain:: 80--callchain::
68 Do call-graph (stack chain/backtrace) recording 81 Do call-graph (stack chain/backtrace) recording
@@ -87,6 +100,14 @@ Record system-wide timechart:
87 100
88 $ perf timechart --highlight gcc 101 $ perf timechart --highlight gcc
89 102
103Record system-wide IO events:
104
105 $ perf timechart record -I
106
107 then generate timechart:
108
109 $ perf timechart
110
90SEE ALSO 111SEE ALSO
91-------- 112--------
92linkperf:perf-record[1] 113linkperf:perf-record[1]