2 Julien Desfossez <julien.desfossez@polymtl.ca>
5 Lttngtop is an ncurses interface for reading and browsing traces recorded by
6 the LTTng tracer and displaying various statistics.
7 As of now, the cpu usage and perf counters are displayed. This version currently
8 only supports offline traces, but a live version is in alpha and will be
9 available for testing soon.
14 Record a trace with LTTng 2.0 with at least the sched_switch event, and the pid,
15 procname, tid, ppid contexts. To have the perftop view working you can enable
16 any number of perf contexts (depending on your hardware).
17 For the iotop view, you need to have some syscall events : sys_read, sys_write
20 Once your trace is recorded, you can use lttngtop this way :
21 $ lttngtop /path/to/your/trace
23 Make sure you have read permissions on the whole directory.
28 Since this is an early release of lttngtop, it is still inside the babeltrace
29 source tree. As soon as all babeltrace dependencies are available from the
30 library and header files, lttngtop will be in its own repository. Until then,
31 changes in the babeltrace source tree will be merged in this tree to avoid
32 conflicts. This repository doesn't install the babeltrace binary, or any of its
33 libraries. This way you can safely install it in the default locations.
38 # lttng create lttngtop
39 # lttng enable-event -k sched_switch
40 # lttng add-context -k -t pid -t procname -t tid -t ppid -t perf:cache-misses \
41 -t perf:major-faults -t perf:branch-load-misses
47 $ lttngtop $HOME/lttng-traces/lttngtop-...
52 ./bootstrap (skip if using tarball)
60 To compile Babeltrace and lttngtop, you will need:
63 libc6 development librairies
64 (Debian : libc6, libc6-dev)
65 (Fedora : glibc, glibc)
66 glib 2.22 or better development libraries
67 (Debian : libglib2.0-0, libglib2.0-dev)
68 (Fedora : glib2, glib2-devel)
69 uuid development libraries
72 libpopt >= 1.13 development libraries
73 (Debian : libpopt-dev)
75 ncurses development libraries
76 (Debian : libncurses5-dev)
78 For developers using the git tree:
80 This source tree is based on the autotools suite from GNU to simplify
81 portability. Here are some things you should have on your system in order to
82 compile the git repository tree :
84 - GNU autotools (automake >=1.10, autoconf >=2.50, autoheader >=2.50)
85 (make sure your system wide "automake" points to a recent version!)
87 (for more information, go to http://www.gnu.org/software/autoconf/)
91 If you get the tree from the repository, you will need to use the "bootstrap"
92 script in the root of the tree. It calls all the GNU tools needed to prepare the