Add Callgrind as an Helper to run lttv
authorFrancis Deslauriers <francis.deslauriers@polymtl.ca>
Fri, 6 Jul 2012 19:13:55 +0000 (15:13 -0400)
committerYannick Brosseau <yannick.brosseau@gmail.com>
Fri, 6 Jul 2012 21:34:21 +0000 (17:34 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@polymtl.ca>
Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c
runlttv

index ea3c385023788b2aad0c777a7c7b7b16a3cb5e79..7c113118ac79b0bd58d410a0900e5dff97e27b70 100644 (file)
@@ -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 a1be65facdf822fd871413cbe288a923240e1050..9ba5fd63a9ee38b01ba7795d1a0f08b42bbb13e3 100755 (executable)
--- 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
This page took 0.026737 seconds and 4 git commands to generate.