54f7c14518ea1c98dcd8fda80827d309e94edc2a
[lttngtop.git] / doc / lttngtop.1
1 .TH "LTTNGTOP" "1" "April 18, 2012" "" ""
2
3 .SH "NAME"
4 lttngtop \(em LTTng Trace Viewer
5
6 .SH "SYNOPSIS"
7
8 .PP
9 .nf
10 lttngtop INPUT
11 .fi
12 .SH "DESCRIPTION"
13
14 .PP
15
16 Lttngtop is a ncurses interface for reading and browsing traces recorded by the
17 LTTng tracer and displaying various statistics. As of now, the cpu usage,
18 performance counters and per process/file I/O bandwidth are displayed. This
19 version currently only supports offline traces, but a live version is in alpha
20 and will be available for testing soon.
21 .SH "OPTIONS"
22
23 .TP
24 .BR "INPUT"
25 Input trace path
26
27 .SH "TRACE REQUIREMENTS"
28
29 .PP
30
31 LTTngTop requires that the pid, procname, tid and ppid context information
32 are enabled during tracing.
33 .PP
34
35 .PP
36 If you want the CPU activity view, you need the sched_switch event, if you
37 want the I/O statistics, you need to enable the system call tracing, and if
38 you want the performance counters, you need to enable them for the events you
39 are interested in (or all of them). Note, there is a hardware limitation for the
40 number of performance counter you can enable, check dmesg for information.
41 .PP
42
43 .PP
44 The following example creates a trace with all events enabled, the mandatory context informations and
45 three performance counters. It assumes that you are running as root or with a user part of the tracing group and a lttng-sessiond
46 launched as root.
47 .PP
48
49 .nf
50 lttng create lttngtop
51 lttng enable-event -k lttng_statedump_start,lttng_statedump_end,lttng_statedump_process_state,lttng_statedump_file_descriptor,lttng_statedump_vm_map,lttng_statedump_network_interface,lttng_statedump_interrupt,sched_process_free,sched_switchsched_process_fork -s lttngtop
52 lttng enable-event -k --syscall -a -s lttngtop
53 lttng add-context -k -t pid -t procname -t tid -t ppid -t perf:cache-misses -t perf:major-faults -t perf:branch-load-misses -s lttngtop
54 lttng start lttngtop
55 sleep 10
56 lttng stop lttngtop
57 lttng destroy lttngtop
58 .fi
59
60 .SH "LIVE STREAMING"
61
62 .PP
63 In addition to offline traces, LTTngTop can read traces while they are being
64 recorded. The official supported way of doing live streaming is using
65 lttng-tools >=2.4 and following the documentation in live-reading-howto.txt of
66 lttng-tools and README-LIVE of lttngtop.
67 An other experimental way of doing live tracing is with mmap, but this requires some
68 more work because is not officially supported and requires out-of-tree patches to
69 lttng-tools and babeltrace.
70
71 .PP
72 To use the network live-reading, the user only needs to specify the relayd hostname
73 or IP address with the option -r. For now, LTTngTop will only connect to the first
74 live session established on the relay, but in a near future, the user will be able
75 to choose which session to attach to.
76
77 The default mode after attaching to a session is to start reading the trace from
78 this point in time. In order to read the trace from the beginning, the user can specify
79 the -b option.
80
81 .SH "KEY BINDINGS"
82
83 .TP 7
84 \ \ \'\fBF2\fR\': \fICPUTop \fR
85 Switch to the CPUTop view which displays the CPU usage of each process
86 .TP 7
87 \ \ \'\fBF3\fR\': \fIPerfTop \fR
88 Switch to the PerfTop view which displays the performance counters (PMU) value of each process (if enabled during tracing)
89 .TP 7
90 \ \ \'\fBF4\fR\': \fIIOTop \fR
91 Switch to the IOTop view which displays the I/O usage of each process (as of now read and writes on any file descriptor network or disk)
92 .TP 7
93 \ \ \'\fBEnter\fR\': \fIProcess details \fR
94 Display all relevant information for the process selected
95 .TP 7
96 \ \ \'\fBSpace\fR\': \fIHighlight \fR
97 Highlights the process under the blue line to make it easy to find it across all views or toggle view in preference panel\fR
98 .TP 7
99 \ \ \'\fBq\fR\': \fIQuit \fR
100 Exit the program
101 .TP 7
102 \ \ \'\fBt\fR\': \fIThreads \fR
103 Toggle threads display in CPUTop
104 .TP 7
105 \ \ \'\fBr\fR\': \fIPreferences \fR
106 Display the preference menu for the current view, this menu helps select the column displayed (only in PerfTop view for now) and the column to sort, use 's' to sort and 'space' to toggle the view
107 .TP 7
108 \ \ \'\fBs\fR\': \fISort \fR
109 In preference view, sort on the currently selected line
110 .TP 7
111 \ \ \'\fBp\fR\': \fIPause/Resume \fR
112 Pause the display, hit again to resume the refresh (only works when the trace has not been fully displayed)
113 .TP 7
114 \ \ \'\fBRight arrow\fR\': \fIMove forward in time \fR
115 Display the next second of data, can be hit several time to bypass the default 1 second refresh period to fast forward
116 .TP 7
117 \ \ \'\fBLeft arrow\fR\': \fIMove backward in time \fR
118 Display the previous second of data, automatically switch to pause if not already enabled
119 .TP 7
120 \ \ \'\fBUp arrow\' / \'k\'\fR: \fIMove UP the cursor \fR
121 Move up the blue line to select processes \fR
122 .TP 7
123 \ \ \'\fBDown arrow\' / \'j\'\fR: \fIMove DOWN the cursor \fR
124 Move down the blue line to select processes
125 .TP 7
126 \ \ \'\fB>\fR': \fI Sort the next column \fR
127 Update the sorting to the next column
128 .TP 7
129 \ \ \'\fB<\fR': \fI Sort the previous column \fR
130 Update the sorting to the previous column
131
132 .SH "SEE ALSO"
133
134 .PP
135 babeltrace(1), babeltrace-log(1), lttng(1), lttng-ust(3), lttng-sessiond(8)
136 .PP
137 .SH "BUGS"
138
139 .PP
140 No knows bugs at this point.
141
142 If you encounter any issues or usability problem, please report it on
143 our mailing list <lttng-dev@lists.lttng.org> to help improve this
144 project.
145 .SH "CREDITS"
146
147 LTTngTop is distributed under the GPLv2 license. See the LICENSE file
148 in the source tree for details.
149
150 .PP
151 A Web site is available at http://www.efficios.com/babeltrace for more
152 information on Babeltrace and the Common Trace Format. See
153 http://lttng.org for more information on the LTTng project.
154 .PP
155 Mailing list for support and development: <lttng-dev@lists.lttng.org>.
156 .PP
157 You can find us on IRC server irc.oftc.net (OFTC) in #lttng.
158 .PP
159
160 .SH "AUTHORS"
161
162 .PP
163 LTTngTop was originally written by Julien Desfossez, with contribution
164 from Mathieu Bain for the I/O bandwidth view, and suggestions and ideas
165 from the team working with the LTTng project. It is currently
166 maintained by Julien Desfossez <jdesfossez@efficios.com>
167 .PP
This page took 0.032832 seconds and 3 git commands to generate.