Changeset: 841b4dc5cf5c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=841b4dc5cf5c
Modified Files:
        gdk/gdk_imprints.c
Branch: Oct2014
Log Message:

Trace construction time for imprints.


diffs (29 lines):

diff --git a/gdk/gdk_imprints.c b/gdk/gdk_imprints.c
--- a/gdk/gdk_imprints.c
+++ b/gdk/gdk_imprints.c
@@ -545,6 +545,7 @@ BATimprints(BAT *b)
 {
        BAT *o = NULL;
        Imprints *imprints;
+       lng t0 =0,t1=0;
 
        assert(BAThdense(b));   /* assert void head */
 
@@ -582,6 +583,7 @@ BATimprints(BAT *b)
        }
 
        MT_lock_set(&GDKimprintsLock(abs(b->batCacheid)), "BATimprints");
+       t0= GDKusec();
        if (b->T->imprints == NULL) {
                BAT *smp, *s;
                BUN cnt;
@@ -782,6 +784,9 @@ BATimprints(BAT *b)
                }
                b->T->imprints = imprints;
        }
+ 
+        t1 = GDKusec();
+        ALGODEBUG fprintf(stderr, "#BATimprints: imprints construction " LLFMT 
" usec\n", t1 - t0);
 
   do_return:
        MT_lock_unset(&GDKimprintsLock(abs(b->batCacheid)), "BATimprints");
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to