From: Francis Deslauriers Date: Fri, 6 Jul 2012 19:13:55 +0000 (-0400) Subject: Add Callgrind as an Helper to run lttv X-Git-Tag: v1.5-beta1~60 X-Git-Url: https://git.lttng.org/?p=lttv.git;a=commitdiff_plain;h=1167062fa9bd8dc2a698106b7d58f63ea6c99a8c Add Callgrind as an Helper to run lttv Signed-off-by: Francis Deslauriers Signed-off-by: Yannick Brosseau --- diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index ea3c3850..7c113118 100644 --- a/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -1632,6 +1632,7 @@ void add_trace(GtkWidget * widget, gpointer user_data) ptab = (LttvPluginTab *)g_object_get_data(G_OBJECT(page), "Tab_Plugin"); tab = ptab->tab; } +//TODO fdeslauriers 2012-07-06: Remove this popup when we support multiple traces traceset = lttvwindow_get_traceset(tab); if(traceset != NULL && lttv_traceset_number(traceset) > 0){ GtkWidget *dialogue = diff --git a/runlttv b/runlttv index a1be65fa..9ba5fd63 100755 --- a/runlttv +++ b/runlttv @@ -90,6 +90,8 @@ if [ "$HELPER" = "gdb" ]; then LD_LIBRARY_PATH=${BUILDPATH}/ltt/.libs gdb --args $LTTV_EXEC $LTTV_ARGS elif [ "$HELPER" = "valgrind" ]; then LD_LIBRARY_PATH=${BUILDPATH}/ltt/.libs G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --show-reachable=yes --leak-check=full --tool=memcheck --suppressions=debug/gtk.suppression --track-origins=yes --error-limit=no $LTTV_EXEC $LTTV_ARGS +elif [ "$HELPER" = "callgrind" ]; then + LD_LIBRARY_PATH=${BUILDPATH}/ltt/.libs G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --tool=callgrind $LTTV_EXEC $LTTV_ARGS elif [ "$HELPER" = "massif" ]; then LD_LIBRARY_PATH=${BUILDPATH}/ltt/.libs valgrind --tool=massif $LTTV_EXEC $LTTV_ARGS elif [ "$HELPER" = "strace" ]; then