Changeset: 953ae05f2cc8 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=953ae05f2cc8 Modified Files: monetdb5/mal/mal_profiler.c Branch: default Log Message:
Profiler objects corresponding to function calls contain caller ids The objects that correspond to function calls contain the key "caller". The value of this key is the tag of the caller execution. diffs (17 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 @@ -167,6 +167,13 @@ renderProfilerEvent(MalBlkPtr mb, MalStk logadd("\"pc\":%d,%s", mb?getPC(mb,pci):0, prettify); logadd("\"tag\":%d,%s", stk?stk->tag:0, prettify); logadd("\"module\":\"%s\",%s", pci->modname ? pci->modname : "", prettify); + if (strcmp(pci->modname, "user") == 0) { + int caller_tag = 0; + if(stk && stk->up) { + caller_tag = stk->up->tag; + } + logadd("\"caller\":%d,%s", caller_tag, prettify); + } logadd("\"instruction\":\"%s\",%s", pci->fcnname ? pci->fcnname : "", prettify); if (!GDKinmemory()) { char *uuid; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list