perf-timechart(1) ================= NAME ---- perf-timechart - Tool to visualize total system behavior during a workload SYNOPSIS -------- [verse] 'perf timechart' [] {record} [] DESCRIPTION ----------- There are two variants of perf timechart: 'perf timechart record ' to record the system level events of an arbitrary workload. By default timechart records only scheduler and CPU events (task switches, running times, CPU power states, etc), but it's possible to record IO (disk, network) activity using -I argument. 'perf timechart' to turn a trace into a Scalable Vector Graphics file, that can be viewed with popular SVG viewers such as 'Inkscape'. Depending on the events in the perf.data file, timechart will contain scheduler/cpu events or IO events. In IO mode, every bar has two charts: upper and lower. Upper bar shows incoming events (disk reads, ingress network packets). Lower bar shows outgoing events (disk writes, egress network packets). There are also poll bars which show how much time application spent in poll/epoll/select syscalls. TIMECHART OPTIONS ----------------- -o:: --output=:: Select the output file (default: output.svg) -i:: --input=:: Select the input file (default: perf.data unless stdin is a fifo) -w:: --width=:: Select the width of the SVG file (default: 1000) -P:: --power-only:: Only output the CPU power section of the diagram -T:: --tasks-only:: Don't output processor state transitions -p:: --process:: Select the processes to display, by name or PID --symfs=:: Look for files with symbols relative to this directory. -n:: --proc-num:: Print task info for at least given number of tasks. -t:: --topology:: Sort CPUs according to topology. --highlight=:: Highlight tasks (using different color) that run more than given duration or tasks with given name. If number is given it's interpreted as number of nanoseconds. If non-numeric string is given it's interpreted as task name. --io-skip-eagain:: Don't draw EAGAIN IO events. --io-min-time=:: Draw small events as if they lasted min-time. Useful when you need to see very small and fast IO. It's possible to specify ms or us suffix to specify time in milliseconds or microseconds. Default value is 1ms. --io-merge-dist=:: Merge events that are merge-dist nanoseconds apart. Reduces number of figures on the SVG and makes it more render-friendly. It's possible to specify ms or us suffix to specify time in milliseconds or microseconds. Default value is 1us. RECORD OPTIONS -------------- -P:: --power-only:: Record only power-related events -T:: --tasks-only:: Record only tasks-related events -I:: --io-only:: Record only io-related events -g:: --callchain:: Do call-graph (stack chain/backtrace) recording EXAMPLES -------- $ perf timechart record git pull [ perf record: Woken up 13 times to write data ] [ perf record: Captured and wrote 4.253 MB perf.data (~185801 samples) ] $ perf timechart Written 10.2 seconds of trace to output.svg. Record system-wide timechart: $ perf timechart record then generate timechart and highlight 'gcc' tasks: $ perf timechart --highlight gcc Record system-wide IO events: $ perf timechart record -I then generate timechart: $ perf timechart SEE ALSO -------- linkperf:perf-record[1] r>context:space:mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-18 11:13:41 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-18 11:13:41 -0800
commitca92e6c7e6329029d7188487a5c32e86ef471977 (patch)
tree704fb5c2ca533cdb569826522eed0dbbcf31f316 /tools/pcmcia
parent0b75f821ec8be459dd4dec77be39595d989d77ac (diff)
parent4205e4786d0b9fc3b4fec7b1910cf645a0468307 (diff)
Merge branch 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull SMP hotplug update from Thomas Gleixner: "This contains a trivial typo fix and an extension to the core code for dynamically allocating states in the prepare stage. The extension is necessary right now because we need a proper way to unbreak LTTNG, which iscurrently non functional due to the removal of the notifiers. Surely it's out of tree, but it's widely used by distros. The simple solution would have been to reserve a state for LTTNG, but I'm not fond about unused crap in the kernel and the dynamic range, which we admittedly should have done right away, allows us to remove quite some of the hardcoded states, i.e. those which have no ordering requirements. So doing the right thing now is better than having an smaller intermediate solution which needs to be reworked anyway" * 'smp-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: cpu/hotplug: Provide dynamic range for prepare stage perf/x86/amd/ibs: Fix typo after cleanup state names in cpu/hotplug
Diffstat (limited to 'tools/pcmcia')