Changeset: d8d423d41c0f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d8d423d41c0f
Modified Files:
        monetdb5/scheduler/run_mutation.c
Branch: mutation
Log Message:

Illustrate all alternatives


diffs (34 lines):

diff --git a/monetdb5/scheduler/run_mutation.c 
b/monetdb5/scheduler/run_mutation.c
--- a/monetdb5/scheduler/run_mutation.c
+++ b/monetdb5/scheduler/run_mutation.c
@@ -25,6 +25,7 @@
  */
 #include "monetdb_config.h"
 #include "run_mutation.h"
+#include "mal_profiler.h"
 
 str
 RUNmutation(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p)
@@ -50,6 +51,7 @@ RUNmutation(Client cntxt, MalBlkPtr mb, 
        // if called the first time, just execute the call
        if ( nb->calls == 0){
                initProfiler(nb);
+               setFilterAll();
                msg = runMAL(cntxt, nb,0,0);
                return msg;
        }
@@ -60,10 +62,14 @@ RUNmutation(Client cntxt, MalBlkPtr mb, 
                p = getInstrPtr(nb,i);
                if ( p->barrier)
                        continue;       // ignore block structures
+               DEBUG_MUTATION
+                       mnstr_printf(cntxt->fdout,"#mutation candidate %d cost 
"LLFMT"\n", i, nb->profiler[i].ticks/nb->calls);
+
                if ( nb->profiler[i].ticks/nb->calls > 
nb->profiler[target].ticks/nb->calls)
                        target = i;
        }
        DEBUG_MUTATION if ( nb->profiler && target) {
+               mnstr_printf(cntxt->fdout,"#mutation calls %d cost "LLFMT"\n", 
nb->calls, nb->runtime/nb->calls);
                mnstr_printf(cntxt->fdout,"#mutation target instruction %d cost 
"LLFMT"\n", target, nb->profiler[target].ticks/nb->calls);
        }
        /* At this point we have a target instruction to be replaced */
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to