.TH "LTTNGTOP" "1" "April 18, 2012" "" "" .SH "NAME" lttngtop \(em LTTng Trace Viewer .SH "SYNOPSIS" .PP .nf lttngtop INPUT .fi .SH "DESCRIPTION" .PP Lttngtop is a ncurses interface for reading and browsing traces recorded by the LTTng tracer and displaying various statistics. As of now, the cpu usage, performance counters and per process/file I/O bandwidth are displayed. This version currently only supports offline traces, but a live version is in alpha and will be available for testing soon. .SH "OPTIONS" .TP .BR "INPUT" Input trace path .SH "TRACE REQUIREMENTS" .PP LTTngTop requires that the pid, procname, tid and ppid context information are enabled during tracing. .PP .PP If you want the CPU activity view, you need the sched_switch event, if you want the I/O statistics, you need to enable the system call tracing, and if you want the performance counters, you need to enable them for the events you are interested in (or all of them). Note, there is a hardware limitation for the number of performance counter you can enable, check dmesg for information. .PP .PP The following example creates a trace with all events enabled, the mandatory context informations and three performance counters. It assumes that you are running as root or with a user part of the tracing group and a lttng-sessiond launched as root. .PP .nf lttng create lttngtop lttng enable-event -k -a 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 lttng start sleep 10 lttng stop lttng destroy .fi .SH "KEY BINDINGS" .TP 7 \ \ \'\fBF2\fR\': \fICPUTop \fR Switch to the CPUTop view which displays the CPU usage of each process .TP 7 \ \ \'\fBF3\fR\': \fIPerfTop \fR Switch to the PerfTop view which displays the performance counters (PMU) value of each process (if enabled during tracing) .TP 7 \ \ \'\fBF4\fR\': \fIIOTop \fR 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) .TP 7 \ \ \'\fBEnter\fR\': \fIProcess details \fR Display all relevant information for the process selected .TP 7 \ \ \'\fBSpace\fR\': \fIHighlight \fR Highlights the process under the blue line to make it easy to find it across all views or toggle view in preference panel\fR .TP 7 \ \ \'\fBq\fR\': \fIQuit \fR Exit the program .TP 7 \ \ \'\fBr\fR\': \fIPreferences \fR 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 .TP 7 \ \ \'\fBs\fR\': \fISort \fR In preference view, sort on the currently selected line .TP 7 \ \ \'\fBp\fR\': \fIPause/Resume \fR Pause the display, hit again to resume the refresh (only works when the trace has not been fully displayed) .TP 7 \ \ \'\fBRight arrow\fR\': \fIMove forward in time \fR Display the next second of data, can be hit several time to bypass the default 1 second refresh period to fast forward .TP 7 \ \ \'\fBLeft arrow\fR\': \fIMove backward in time \fR Display the previous second of data, automatically switch to pause if not already enabled .TP 7 \ \ \'\fBUp arrow\' / \'k\'\fR: \fIMove UP the cursor \fR Move up the blue line to select processes \fR .TP 7 \ \ \'\fBDown arrow\' / \'j\'\fR: \fIMove DOWN the cursor \fR Move down the blue line to select processes .SH "SEE ALSO" .PP babeltrace(1), babeltrace-log(1), lttng(1), lttng-ust(3), lttng-sessiond(8) .PP .SH "BUGS" .PP No knows bugs at this point. If you encounter any issues or usability problem, please report it on our mailing list to help improve this project. .SH "CREDITS" LTTngTop is distributed under the GPLv2 license. See the LICENSE file in the source tree for details. .PP A Web site is available at http://www.efficios.com/babeltrace for more information on Babeltrace and the Common Trace Format. See http://lttng.org for more information on the LTTng project. .PP Mailing list for support and development: . .PP You can find us on IRC server irc.oftc.net (OFTC) in #lttng. .PP .SH "AUTHORS" .PP LTTngTop was originally written by Julien Desfossez, with contribution from Mathieu Bain for the I/O bandwidth view, and suggestions and ideas from the team working with the LTTng project. It is currently maintained by Julien Desfossez .PP