Changeset: 9a4c30babaae for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9a4c30babaae
Modified Files:
monetdb5/mal/mal_profiler.c
monetdb5/mal/mal_runtime.c
Branch: Jan2022_prof_ext
Log Message:
Disable start events.
diffs (43 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
@@ -196,7 +196,7 @@ prepare_generic_event(str phase, struct
",\"clk\":"LLFMT
",\"mclk\":%"PRIu64""
",\"thread\":%d"
- ",\"face\":\"%s\""
+ ",\"phase\":\"%s\""
",\"state\":\"%s\""
",\"clientid\":\"%d\""
",\"transactionid\":"ULLFMT
@@ -238,6 +238,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);
}
@@ -703,6 +704,8 @@ 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) {
renderProfilerEvent(cntxt, mb, stk, pci, start);
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
@@ -396,8 +396,8 @@ runtimeProfileBegin(Client cntxt, MalBlk
pci->clock = prof->ticks = GDKusec();
/* emit the instruction upon start as well */
- if(malProfileMode > 0 )
- profilerEvent(cntxt, mb, stk, pci, TRUE);
+ /* if(malProfileMode > 0 ) */
+ /* profilerEvent(cntxt, mb, stk, pci, TRUE); */
}
/* At the end of each MAL stmt */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]