Changeset: 645574e7d158 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/645574e7d158
Modified Files:
gdk/gdk_bbp.c
gdk/gdk_private.h
Branch: ustr
Log Message:
Improve ALGO debug a little.
diffs (51 lines):
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -3352,6 +3352,7 @@ BBPdestroy(BAT *b)
bat tp = VIEWtparent(b);
bat vtp = VIEWvtparent(b);
+ TRC_DEBUG(ALGO, ALGOBATFMT "\n", ALGOBATPAR(b));
if (b->theap) {
HEAPdecref(b->theap, tp == 0);
b->theap = NULL;
diff --git a/gdk/gdk_private.h b/gdk/gdk_private.h
--- a/gdk/gdk_private.h
+++ b/gdk/gdk_private.h
@@ -330,14 +330,15 @@ ilog2(BUN x)
}
/* some macros to help print info about BATs when using ALGODEBUG */
-#define ALGOBATFMT "%s#" BUNFMT "@" OIDFMT "[%s%s]%s%s%s%s%s%s%s%s%s%s"
+#define ALGOBATFMT "%s#" BUNFMT "@" OIDFMT "[%s%s]%s%s%s%s%s%s%s%s%s%s%s"
#define ALGOBATPAR(b) \
BATgetId(b), \
BATcount(b), \
b->hseqbase, \
ATOMname(b->ttype), \
b->ttype==TYPE_str?b->twidth==1?"1":b->twidth==2?"2":b->twidth==4?"4":"8":"", \
- !b->batTransient ? b->ustr ? "U" : "P" : b->theap && b->theap->parentid
!= b->batCacheid ? "V" : b->tvheap && b->tvheap->parentid != b->batCacheid ?
b->ustr ? "u" : "v" : "T", \
+ b->ttype == TYPE_str && b->ustr ? "U" : "", \
+ !b->batTransient ? "P" : b->theap && b->theap->parentid !=
b->batCacheid ? "V" : b->tvheap && b->tvheap->parentid != b->batCacheid ? "v" :
"T", \
BATtdense(b) ? "D" : b->ttype == TYPE_void && b->tvheap ? "X" :
ATOMstorage(b->ttype) == TYPE_str && b->tvheap && GDK_ELIMDOUBLES(b->tvheap) ?
"E" : "", \
b->tsorted ? "S" : b->tnosorted ? "!s" : "", \
b->trevsorted ? "R" : b->tnorevsorted ? "!r" : "", \
@@ -348,7 +349,7 @@ ilog2(BUN x)
b->torderidx ? "O" : "", \
b->tstrimps ? "I" : b->theap && b->theap->parentid &&
BBP_desc(b->theap->parentid) && BBP_desc(b->theap->parentid)->tstrimps ? "(I)"
: ""
/* use ALGOOPTBAT* when BAT is optional (can be NULL) */
-#define ALGOOPTBATFMT "%s%s" BUNFMT "%s" OIDFMT "%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
+#define ALGOOPTBATFMT "%s%s" BUNFMT "%s" OIDFMT
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
#define ALGOOPTBATPAR(b) \
b ? BATgetId(b) : "", \
b ? "#" : "", \
@@ -359,7 +360,8 @@ ilog2(BUN x)
b ? ATOMname(b->ttype) : "", \
b ?
b->ttype==TYPE_str?b->twidth==1?"1":b->twidth==2?"2":b->twidth==4?"4":"8":"" :
"", \
b ? "]" : "", \
- b ? !b->batTransient ? b->ustr ? "U" : "P" : b->theap &&
b->theap->parentid != b->batCacheid ? "V" : b->tvheap && b->tvheap->parentid !=
b->batCacheid ? b->ustr ? "u" : "v" : "T" : "", \
+ b && b->ttype == TYPE_str && b->ustr ? "U" : "", \
+ b ? !b->batTransient ? "P" : b->theap && b->theap->parentid !=
b->batCacheid ? "V" : b->tvheap && b->tvheap->parentid != b->batCacheid ? "v" :
"T" : "", \
b ? BATtdense(b) ? "D" : b->ttype == TYPE_void && b->tvheap ? "X" :
ATOMstorage(b->ttype) == TYPE_str && b->tvheap && GDK_ELIMDOUBLES(b->tvheap) ?
"E" : "" : "", \
b ? b->tsorted ? "S" : b->tnosorted ? "!s" : "" : "", \
b ? b->trevsorted ? "R" : b->tnorevsorted ? "!r" : "" : "", \
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]