82296c3e50df15b7a6284fc14b1ee6cd4eb213fe
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 # The .runlttvrc file can be used to control its behavior.
9 # - by setting the TRACEFILE variable, a trace can be automatically loaded
10 # ex: TRACEFILE="-t /tmp/traces/dijkstra-20071212"
11 # - by setting the ARGS variable, a different set of plugins can be loaded
12 # for an example see the ARGS= line below
13 # - the LTTV_ARGS environment variable may be used to add additional arguments to lttv
15 # In order for icons to display correctly, it might be necessary to create a
17 # $ ln -s ./lttv/modules/gui/lttvwindow/pixmaps
18 # while in the same directory as this script.
22 ARGS
="-L lttv/modules/gui/controlflow/.libs -m guicontrolflow -L lttv/modules/gui/lttvwindow/lttvwindow/.libs -m lttvwindow -L lttv/modules/gui/detailedevents/.libs -m guievents -L lttv/modules/gui/tracecontrol/.libs -m guitracecontrol -L lttv/modules/gui/statistics/.libs -m guistatistics -L lttv/modules/gui/resourceview/.libs -m resourceview -L lttv/modules/gui/filter/.libs -m guifilter -L lttv/modules/gui/interrupts/.libs -m interrupts -L lttv/modules/gui/histogram/.libs -m guihistogram"
23 LTTV_EXEC
="lttv/lttv/.libs/lttv.real"
25 if [ ! -e "$LTTV_EXEC" ]; then
26 echo "error: LTTV should be compiled before running this script." >/dev
/stderr
34 if [ -e "$RCFILE" ]; then
38 ARGS
="$ARGS $LTTV_ARGS"
42 if [ -n "$dbg" ]; then
43 LD_LIBRARY_PATH
=ltt
/.libs gdb
--args $LTTV_EXEC $ARGS $TRACEFILE
44 elif [ -n "$valgrind" ]; then
45 LD_LIBRARY_PATH
=ltt
/.libs valgrind
--show-reachable=yes --leak-check=full
$LTTV_EXEC $ARGS $TRACEFILE
46 elif [ -n "$strace" ]; then
47 LD_LIBRARY_PATH
=ltt
/.libs strace
$LTTV_EXEC $ARGS $TRACEFILE
49 LD_LIBRARY_PATH
=ltt
/.libs
$LTTV_EXEC $ARGS $TRACEFILE
This page took 0.030887 seconds and 3 git commands to generate.