2 # Released under the GPL
5 # This script runs LTTV in place in the compile directory without need for
6 # installing it with make install.
8 # In order for icons to display correctly, it might be necessary to create a
10 # $ ln -s ./lttv/modules/gui/lttvwindow/pixmaps
11 # while in the same directory as this script.
13 RCFILE
="$(dirname $0)/.runlttvrc"
16 echo "Usage: $0 OPTIONS TRACES..." >/dev
/stderr
18 echo "Options:" >/dev
/stderr
19 echo -e "\t-m mode (modes: text)" >/dev
/stderr
20 echo -e "\t-H helper (helpers: gdb, valgrind, massif, strace)" >/dev
/stderr
24 if [ -e "lttv/lttv/.libs/lttv.real" ]; then
25 LTTV_EXEC
="lttv/lttv/.libs/lttv.real"
26 elif [ -e "lttv/lttv/lttv.real" ]; then
27 LTTV_EXEC
="lttv/lttv/lttv.real"
29 echo "error: LTTV should be compiled before running this script." >/dev
/stderr
33 if [ -e "$RCFILE" ]; then
37 while getopts ":hH:m:" options
; do
49 shift $
(($OPTIND - 1))
53 TRACEFILE
="$TRACEFILE -t $trace "
56 if [ "$MODE" = "text" ]; then
57 ARGS
="-L lttv/modules/text/.libs -m textDump"
59 ARGS
="-L lttv/modules/gui/lttvwindow/lttvwindow/.libs -m lttvwindow "\
60 "-L lttv/modules/gui/controlflow/.libs -m guicontrolflow "\
61 "-L lttv/modules/gui/detailedevents/.libs -m guievents "\
62 "-L lttv/modules/gui/tracecontrol/.libs -m guitracecontrol "\
63 "-L lttv/modules/gui/statistics/.libs -m guistatistics "\
64 "-L lttv/modules/gui/resourceview/.libs -m resourceview "\
65 "-L lttv/modules/gui/filter/.libs -m guifilter "\
66 "-L lttv/modules/gui/interrupts/.libs -m interrupts "\
67 "-L lttv/modules/gui/histogram/.libs -m guihistogram"
70 if [ "$HELPER" = "gdb" ]; then
72 LD_LIBRARY_PATH
=ltt
/.libs gdb
--args $LTTV_EXEC $ARGS $TRACEFILE $@
73 elif [ "$HELPER" = "valgrind" ]; then
75 LD_LIBRARY_PATH
=ltt
/.libs valgrind
--track-origins=yes --show-reachable=yes --leak-check=full
--error-limit=no
$LTTV_EXEC $ARGS $TRACEFILE $@
76 elif [ "$HELPER" = "massif" ]; then
78 LD_LIBRARY_PATH
=ltt
/.libs valgrind
--tool=massif
$LTTV_EXEC $ARGS $TRACEFILE $@
79 elif [ "$HELPER" = "strace" ]; then
81 LD_LIBRARY_PATH
=ltt
/.libs strace
$LTTV_EXEC $ARGS $TRACEFILE $@
83 LD_LIBRARY_PATH
=ltt
/.libs
$LTTV_EXEC $ARGS $TRACEFILE $@
This page took 0.033976 seconds and 4 git commands to generate.