Changeset: 3d9440a49a4c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3d9440a49a4c
Modified Files:
monetdb5/mal/mal_profiler.c
monetdb5/mal/mal_runtime.c
Branch: Jun2020_prof_ext
Log Message:
Disable start event of MAL stmt. Only produce MAL event when pc == 0.
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
@@ -650,7 +650,9 @@ profilerEvent(Client cntxt, MalBlkPtr mb
return;
if(maleventstream) {
- renderProfilerEvent(cntxt, mb, stk, pci, start);
+ if( mb && (getPC(mb,pci) == 0) && 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
@@ -207,8 +207,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); */
}
void
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]