Changeset: 17aa6dc8110f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/17aa6dc8110f
Modified Files:
monetdb5/mal/mal_profiler.c
monetdb5/mal/mal_runtime.c
Branch: Jul2021_prof_ext
Log Message:
Disable start event of MAL stmt. Only produce MAL event when pc==0 and pc==1.
diffs (28 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
@@ -685,7 +685,9 @@ profilerEvent(Client cntxt, MalBlkPtr mb
return;
if(maleventstream) {
- renderProfilerEvent(cntxt, mb, stk, pci, start);
+ if( mb && (getPC(mb,pci) == 0 || getPC(mb,pci) == 1) && start
== FALSE) {
+ renderProfilerEvent(cntxt, mb, stk, pci, start);
+ }
if (!start && pci->pc ==0)
profilerHeartbeatEvent("ping");
if (start && pci->token == ENDsymbol)
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
@@ -407,8 +407,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]