Changeset: a525febc25d0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a525febc25d0
Modified Files:
monetdb5/mal/mal_profiler.c
Branch: default
Log Message:
eol is used to compute memory footprints/lifetimes
diffs (45 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
@@ -176,19 +176,19 @@ renderProfilerEvent(Client cntxt, MalBlk
if( pci->token < FCNcall || pci->token > PATcall)
logadd(",\"operator\":\"%s\"", operatorName(pci->token));
if (!GDKinmemory() && !GDKembedded()) {
- char *uuid = NULL;
- str c;
- if ((c = msab_getUUID(&uuid)) == NULL) {
- logadd(",\"session\":\"%s\"", uuid);
- free(uuid);
- } else
- free(c);
- }
- logadd(",\"state\":\"%s\"", start?"start":"done");
- logadd(",\"usec\":"LLFMT, pci->ticks);
- const char *algo = MT_thread_getalgorithm();
- if (algo) {
- logadd(",\"algorithm\":\"%s\"", algo);
+ char *uuid = NULL;
+ str c;
+ if ((c = msab_getUUID(&uuid)) == NULL) {
+ logadd(",\"session\":\"%s\"", uuid);
+ free(uuid);
+ } else
+ free(c);
+ }
+ logadd(",\"state\":\"%s\"", start?"start":"done");
+ logadd(",\"usec\":"LLFMT, pci->ticks);
+ const char *algo = MT_thread_getalgorithm();
+ if (algo) {
+ logadd(",\"algorithm\":\"%s\"", algo);
}
/* EXAMPLE MAL statement argument decomposition
* The eventparser may assume this layout for ease of parsing
@@ -291,7 +291,7 @@ This information can be used to determin
GDKfree(cv);
GDKfree(stmtq);
}
- // logadd(",\"eol\":%d",
getVarEolife(mb,getArg(pci,j))); useful for MAL debugging
+ logadd(",\"eol\":%d",
getVarEolife(mb,getArg(pci,j)));
// logadd(",\"used\":%d",
isVarUsed(mb,getArg(pci,j)));
// logadd(",\"fixed\":%d",
isVarFixed(mb,getArg(pci,j)));
// logadd(",\"udf\":%d",
isVarUDFtype(mb,getArg(pci,j)));
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list