Changeset: 762c87ff6615 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=762c87ff6615 Modified Files: monetdb5/mal/mal_interpreter.mx Branch: default Log Message:
Stethoscope traces function calls better Entering and exit of MAL blocks was not visible in stethoscope. Now they are properly wrapped to provide better information about execution cost of a complete block. diffs (19 lines): diff --git a/monetdb5/mal/mal_interpreter.mx b/monetdb5/mal/mal_interpreter.mx --- a/monetdb5/mal/mal_interpreter.mx +++ b/monetdb5/mal/mal_interpreter.mx @@ -2087,11 +2087,15 @@ /* reshuffle for profiling */ MalBlkPtr safemb = mb; MalStkPtr safestk = stk; + int safepc= stkpc; + pci->blk->profiler = mb->profiler; mb = pci->blk; stk = nstk; + stkpc = 0; @:beginProfile(stk,1)@ ret = runMALsequence(cntxt, pci->blk, 1, pci->blk->stop, nstk, safestk, pci); @:endProfile(stk,1)@ + stkpc = safepc; mb = safemb; stk = safestk; } _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list