~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/perf/Documentation/perf-timechart.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/perf/Documentation/perf-timechart.txt (Version linux-6.12-rc7) and /tools/perf/Documentation/perf-timechart.txt (Version linux-4.4.302)


  1 perf-timechart(1)                                   1 perf-timechart(1)
  2 =================                                   2 =================
  3                                                     3 
  4 NAME                                                4 NAME
  5 ----                                                5 ----
  6 perf-timechart - Tool to visualize total syste      6 perf-timechart - Tool to visualize total system behavior during a workload
  7                                                     7 
  8 SYNOPSIS                                            8 SYNOPSIS
  9 --------                                            9 --------
 10 [verse]                                            10 [verse]
 11 'perf timechart' [<timechart options>] {record     11 'perf timechart' [<timechart options>] {record} [<record options>]
 12                                                    12 
 13 DESCRIPTION                                        13 DESCRIPTION
 14 -----------                                        14 -----------
 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      17   'perf timechart record <command>' to record the system level events
 18   of an arbitrary workload. By default timecha     18   of an arbitrary workload. By default timechart records only scheduler
 19   and CPU events (task switches, running times     19   and CPU events (task switches, running times, CPU power states, etc),
 20   but it's possible to record IO (disk, networ     20   but it's possible to record IO (disk, network) activity using -I argument.
 21                                                    21 
 22   'perf timechart' to turn a trace into a Scal     22   'perf timechart' to turn a trace into a Scalable Vector Graphics file,
 23   that can be viewed with popular SVG viewers      23   that can be viewed with popular SVG viewers such as 'Inkscape'. Depending
 24   on the events in the perf.data file, timecha     24   on the events in the perf.data file, timechart will contain scheduler/cpu
 25   events or IO events.                             25   events or IO events.
 26                                                    26 
 27   In IO mode, every bar has two charts: upper      27   In IO mode, every bar has two charts: upper and lower.
 28   Upper bar shows incoming events (disk reads,     28   Upper bar shows incoming events (disk reads, ingress network packets).
 29   Lower bar shows outgoing events (disk writes     29   Lower bar shows outgoing events (disk writes, egress network packets).
 30   There are also poll bars which show how much     30   There are also poll bars which show how much time application spent
 31   in poll/epoll/select syscalls.                   31   in poll/epoll/select syscalls.
 32                                                    32 
 33 TIMECHART OPTIONS                                  33 TIMECHART OPTIONS
 34 -----------------                                  34 -----------------
 35 -o::                                               35 -o::
 36 --output=::                                        36 --output=::
 37         Select the output file (default: outpu     37         Select the output file (default: output.svg)
 38 -i::                                               38 -i::
 39 --input=::                                         39 --input=::
 40         Select the input file (default: perf.d     40         Select the input file (default: perf.data unless stdin is a fifo)
 41 -w::                                               41 -w::
 42 --width=::                                         42 --width=::
 43         Select the width of the SVG file (defa     43         Select the width of the SVG file (default: 1000)
 44 -P::                                               44 -P::
 45 --power-only::                                     45 --power-only::
 46         Only output the CPU power section of t     46         Only output the CPU power section of the diagram
 47 -T::                                               47 -T::
 48 --tasks-only::                                     48 --tasks-only::
 49         Don't output processor state transitio     49         Don't output processor state transitions
 50 -p::                                               50 -p::
 51 --process::                                        51 --process::
 52         Select the processes to display, by na     52         Select the processes to display, by name or PID
 53 -f::                                           !!  53 
 54 --force::                                      << 
 55         Don't complain, do it.                 << 
 56 --symfs=<directory>::                              54 --symfs=<directory>::
 57         Look for files with symbols relative t     55         Look for files with symbols relative to this directory.
 58 -n::                                               56 -n::
 59 --proc-num::                                       57 --proc-num::
 60         Print task info for at least given num     58         Print task info for at least given number of tasks.
 61 -t::                                               59 -t::
 62 --topology::                                       60 --topology::
 63         Sort CPUs according to topology.           61         Sort CPUs according to topology.
 64 --highlight=<duration_nsecs|task_name>::           62 --highlight=<duration_nsecs|task_name>::
 65         Highlight tasks (using different color     63         Highlight tasks (using different color) that run more than given
 66         duration or tasks with given name. If      64         duration or tasks with given name. If number is given it's interpreted
 67         as number of nanoseconds. If non-numer     65         as number of nanoseconds. If non-numeric string is given it's
 68         interpreted as task name.                  66         interpreted as task name.
 69 --io-skip-eagain::                                 67 --io-skip-eagain::
 70         Don't draw EAGAIN IO events.               68         Don't draw EAGAIN IO events.
 71 --io-min-time=<nsecs>::                            69 --io-min-time=<nsecs>::
 72         Draw small events as if they lasted mi     70         Draw small events as if they lasted min-time. Useful when you need
 73         to see very small and fast IO. It's po     71         to see very small and fast IO. It's possible to specify ms or us
 74         suffix to specify time in milliseconds     72         suffix to specify time in milliseconds or microseconds.
 75         Default value is 1ms.                      73         Default value is 1ms.
 76 --io-merge-dist=<nsecs>::                          74 --io-merge-dist=<nsecs>::
 77         Merge events that are merge-dist nanos     75         Merge events that are merge-dist nanoseconds apart.
 78         Reduces number of figures on the SVG a     76         Reduces number of figures on the SVG and makes it more render-friendly.
 79         It's possible to specify ms or us suff     77         It's possible to specify ms or us suffix to specify time in
 80         milliseconds or microseconds.              78         milliseconds or microseconds.
 81         Default value is 1us.                      79         Default value is 1us.
 82                                                    80 
 83 RECORD OPTIONS                                     81 RECORD OPTIONS
 84 --------------                                     82 --------------
 85 -P::                                               83 -P::
 86 --power-only::                                     84 --power-only::
 87         Record only power-related events           85         Record only power-related events
 88 -T::                                               86 -T::
 89 --tasks-only::                                     87 --tasks-only::
 90         Record only tasks-related events           88         Record only tasks-related events
 91 -I::                                               89 -I::
 92 --io-only::                                        90 --io-only::
 93         Record only io-related events              91         Record only io-related events
 94 -g::                                               92 -g::
 95 --callchain::                                      93 --callchain::
 96         Do call-graph (stack chain/backtrace)      94         Do call-graph (stack chain/backtrace) recording
 97                                                    95 
 98 EXAMPLES                                           96 EXAMPLES
 99 --------                                           97 --------
100                                                    98 
101 $ perf timechart record git pull                   99 $ perf timechart record git pull
102                                                   100 
103   [ perf record: Woken up 13 times to write da    101   [ perf record: Woken up 13 times to write data ]
104   [ perf record: Captured and wrote 4.253 MB p    102   [ perf record: Captured and wrote 4.253 MB perf.data (~185801 samples) ]
105                                                   103 
106 $ perf timechart                                  104 $ perf timechart
107                                                   105 
108   Written 10.2 seconds of trace to output.svg.    106   Written 10.2 seconds of trace to output.svg.
109                                                   107 
110 Record system-wide timechart:                     108 Record system-wide timechart:
111                                                   109 
112   $ perf timechart record                         110   $ perf timechart record
113                                                   111 
114   then generate timechart and highlight 'gcc'     112   then generate timechart and highlight 'gcc' tasks:
115                                                   113 
116   $ perf timechart --highlight gcc                114   $ perf timechart --highlight gcc
117                                                   115 
118 Record system-wide IO events:                     116 Record system-wide IO events:
119                                                   117 
120   $ perf timechart record -I                      118   $ perf timechart record -I
121                                                   119 
122   then generate timechart:                        120   then generate timechart:
123                                                   121 
124   $ perf timechart                                122   $ perf timechart
125                                                   123 
126 SEE ALSO                                          124 SEE ALSO
127 --------                                          125 --------
128 linkperf:perf-record[1]                           126 linkperf:perf-record[1]
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php