Changeset: 340855347baa for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=340855347baa
Modified Files:
monetdb5/mal/mal_runtime.c
Branch: Oct2014
Log Message:
Avoid double counting the execution time.
We initialize the pci->ticks at the start of the instruction,
thus don't accumulate.
diffs (12 lines):
diff --git a/monetdb5/mal/mal_runtime.c b/monetdb5/mal/mal_runtime.c
--- a/monetdb5/mal/mal_runtime.c
+++ b/monetdb5/mal/mal_runtime.c
@@ -187,7 +187,7 @@ runtimeProfileExit(Client cntxt, MalBlkP
assert(pci);
assert(prof);
/* always collect the MAL instruction execution time */
- pci->ticks += GDKusec() - prof->ticks;
+ pci->ticks = GDKusec() - prof->ticks;
pci->calls++;
if (getProfileCounter(PROFfootprint) ){
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list