Changeset: fcf08d66faf5 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fcf08d66faf5 Modified Files: gdk/gdk_align.c gdk/gdk_bat.c gdk/gdk_batop.c gdk/gdk_private.h Branch: Jun2020 Log Message:
Enhanced a few ALGO debug prints, especially some BAT properties. diffs (108 lines): diff --git a/gdk/gdk_align.c b/gdk/gdk_align.c --- a/gdk/gdk_align.c +++ b/gdk/gdk_align.c @@ -141,7 +141,7 @@ VIEWcreate(oid seq, BAT *b) GDKfree(bn); return NULL; } - TRC_DEBUG(ALGO, "VIEWcreate(" ALGOBATFMT ")=" ALGOBATFMT "\n", + TRC_DEBUG(ALGO, ALGOBATFMT " -> " ALGOBATFMT "\n", ALGOBATPAR(b), ALGOBATPAR(bn)); return bn; } diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c --- a/gdk/gdk_bat.c +++ b/gdk/gdk_bat.c @@ -842,7 +842,7 @@ COLcopy(BAT *b, int tt, bool writable, r } if (!writable) bn->batRestricted = BAT_READ; - TRC_DEBUG(ALGO, "COLcopy(" ALGOBATFMT ")=" ALGOBATFMT "\n", + TRC_DEBUG(ALGO, ALGOBATFMT " -> " ALGOBATFMT "\n", ALGOBATPAR(b), ALGOBATPAR(bn)); return bn; bunins_failed: diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c --- a/gdk/gdk_batop.c +++ b/gdk/gdk_batop.c @@ -1767,11 +1767,11 @@ BATsort(BAT **sorted, BAT **order, BAT * } *groups = gn; } - TRC_DEBUG(ALGO, "BATsort(b=" ALGOBATFMT ",o=" + TRC_DEBUG(ALGO, "b=" ALGOBATFMT ",o=" ALGOOPTBATFMT ",g=" ALGOOPTBATFMT ",reverse=%d,nilslast=%d,stable=%d) = (" ALGOOPTBATFMT "," ALGOOPTBATFMT "," - ALGOOPTBATFMT ") -- trivial (" LLFMT + ALGOOPTBATFMT " -- trivial (" LLFMT " usec)\n", ALGOBATPAR(b), ALGOOPTBATPAR(o), ALGOOPTBATPAR(g), reverse, nilslast, stable, @@ -1854,11 +1854,11 @@ BATsort(BAT **sorted, BAT **order, BAT * BBPunfix(on->batCacheid); on = NULL; } - TRC_DEBUG(ALGO, "BATsort(b=" ALGOBATFMT ",o=" + TRC_DEBUG(ALGO, "b=" ALGOBATFMT ",o=" ALGOOPTBATFMT ",g=" ALGOOPTBATFMT ",reverse=%d,nilslast=%d,stable=%d) = (" ALGOOPTBATFMT "," ALGOOPTBATFMT "," - ALGOOPTBATFMT ") -- orderidx (" LLFMT + ALGOOPTBATFMT " -- orderidx (" LLFMT " usec)\n", ALGOBATPAR(b), ALGOOPTBATPAR(o), ALGOOPTBATPAR(g), reverse, nilslast, stable, @@ -1956,12 +1956,12 @@ BATsort(BAT **sorted, BAT **order, BAT * goto error; *groups = gn; } - TRC_DEBUG(ALGO, "BATsort(b=" ALGOBATFMT + TRC_DEBUG(ALGO, "b=" ALGOBATFMT ",o=" ALGOOPTBATFMT ",g=" ALGOBATFMT ",reverse=%d,nilslast=%d,stable=%d" ") = (" ALGOOPTBATFMT "," ALGOOPTBATFMT "," ALGOOPTBATFMT - ") -- key group (" LLFMT " usec)\n", + " -- key group (" LLFMT " usec)\n", ALGOBATPAR(b), ALGOOPTBATPAR(o), ALGOBATPAR(g), reverse, nilslast, stable, ALGOOPTBATPAR(bn), @@ -2078,10 +2078,10 @@ BATsort(BAT **sorted, BAT **order, BAT * bn = NULL; } - TRC_DEBUG(ALGO, "BATsort(b=" ALGOBATFMT ",o=" ALGOOPTBATFMT + TRC_DEBUG(ALGO, "b=" ALGOBATFMT ",o=" ALGOOPTBATFMT ",g=" ALGOOPTBATFMT ",reverse=%d,nilslast=%d," "stable=%d) = (" ALGOOPTBATFMT "," ALGOOPTBATFMT "," - ALGOOPTBATFMT ") -- %ssort (" LLFMT " usec)\n", + ALGOOPTBATFMT " -- %ssort (" LLFMT " usec)\n", ALGOBATPAR(b), ALGOOPTBATPAR(o), ALGOOPTBATPAR(g), reverse, nilslast, stable, ALGOOPTBATPAR(bn), ALGOOPTBATPAR(gn), ALGOOPTBATPAR(on), diff --git a/gdk/gdk_private.h b/gdk/gdk_private.h --- a/gdk/gdk_private.h +++ b/gdk/gdk_private.h @@ -265,8 +265,8 @@ BAT *virtualize(BAT *bn) BATcount(b), \ b->hseqbase, \ ATOMname(b->ttype), \ - !b->batTransient ? "P" : isVIEW(b) ? "V" : "T", \ - BATtdense(b) ? "D" : b->ttype == TYPE_void && b->tvheap ? "X" :"", \ + !b->batTransient ? "P" : b->theap.parentid ? "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 && GDK_ELIMDOUBLES(b->tvheap) ? "E" : "", \ b->tsorted ? "S" : b->tnosorted ? "!s" : "", \ b->trevsorted ? "R" : b->tnorevsorted ? "!r" : "", \ b->tkey ? "K" : b->tnokey[1] ? "!k" : "", \ @@ -285,8 +285,8 @@ BAT *virtualize(BAT *bn) b ? "[" : "", \ b ? ATOMname(b->ttype) : "", \ b ? "]" : "", \ - b ? !b->batTransient ? "P" : isVIEW(b) ? "V" : "T" : "", \ - b ? BATtdense(b) ? "D" : b->ttype == TYPE_void && b->tvheap ? "X" : "" : "", \ + b ? !b->batTransient ? "P" : b->theap.parentid ? "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 && GDK_ELIMDOUBLES(b->tvheap) ? "E" : "" : "", \ b ? b->tsorted ? "S" : b->tnosorted ? "!s" : "" : "", \ b ? b->trevsorted ? "R" : b->tnorevsorted ? "!r" : "" : "", \ b ? b->tkey ? "K" : b->tnokey[1] ? "!k" : "" : "", \ _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list