Changeset: ebf0b00d384b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ebf0b00d384b
Modified Files:
gdk/gdk_tracer.c
Branch: gdk_tracer
Log Message:
Added define for debugging GDKtracer
diffs (42 lines):
diff --git a/gdk/gdk_tracer.c b/gdk/gdk_tracer.c
--- a/gdk/gdk_tracer.c
+++ b/gdk/gdk_tracer.c
@@ -17,6 +17,8 @@
#include "gdk.h"
#include "gdk_tracer.h"
+#define _GDKTRACER_DEBUG_
+
// We need to get rid of macros defined in gdk.h. Those are using GDKtracer in
order to produce
// messages. At the point malloc is called in gdk_tracer.c (in function
_GDKtracer_fill_tracer)
// a lock has already being acquired. Using the macro malloc in gdk.h a call
to GDKtracer
@@ -222,11 +224,10 @@ static gdk_return
}
}
}
-
-/* CHECK
- * this should only be called if you wish to trace the GDKtracer
+
+#ifdef _GDKTRACER_DEBUG_
GDKtracer_show_info();
-*/
+#endif
return GDK_SUCCEED;
}
@@ -279,10 +280,11 @@ GDKtracer_set_component_level(int *comp,
return GDK_FAIL;
LVL_PER_COMPONENT[*comp] = level;
-/* CHECK
- * this should only be called if you wish to trace the GDKtracer
+
+#ifdef _GDKTRACER_DEBUG_
GDKtracer_show_info();
-*/
+#endif
+
return GDK_SUCCEED;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list