Changeset: a6124678094f for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/a6124678094f Modified Files: monetdb5/mal/mal_profiler.c Branch: Jun2020_prof_ext Log Message:
Disable start event of non-mal stmts. Query can be identified through sql_parse event. diffs (26 lines): diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c --- a/monetdb5/mal/mal_profiler.c +++ b/monetdb5/mal/mal_profiler.c @@ -237,6 +237,7 @@ render_generic_event(str msg, struct Gen void generic_event(str msg, struct GenericEvent e, int state) { + if (state == 0) return; // ignore start of non-mal event if( maleventstream ) { render_generic_event(msg, e, state); } @@ -648,11 +649,11 @@ profilerEvent(Client cntxt, MalBlkPtr mb if (pci == NULL) return; if (getModuleId(pci) == myname) // ignore profiler commands from monitoring return; + if (start == TRUE) return; // ignore start of mal event + if ( mb && (getPC(mb,pci) != 0)) return; // ignore event that are not PC = 0 if(maleventstream) { - if( mb && (getPC(mb,pci) == 0 || getPC(mb,pci) == 1) && start == FALSE) { - renderProfilerEvent(cntxt, mb, stk, pci, start); - } + renderProfilerEvent(cntxt, mb, stk, pci, start); if (!start && pci->pc ==0) profilerHeartbeatEvent("ping"); if (start && pci->token == ENDsymbol) _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org