Changeset: e793147bcd2a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e793147bcd2a
Modified Files:
        monetdb5/mal/mal_profiler.c
Branch: compactprofiler
Log Message:

Do not generate a call statement for profiling JSON objects

The call statement should be reconstructed by the client if needed.


diffs (41 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
@@ -130,7 +130,6 @@ renderProfilerEvent(Client cntxt, MalBlk
        char logbuffer[LOGLEN], *logbase;
        size_t loglen;
        str c;
-       str stmt;
        str stmtq;
        lng usec;
        uint64_t microseconds;
@@ -188,29 +187,6 @@ renderProfilerEvent(Client cntxt, MalBlk
        logadd(",\"state\":\"%s\"", start?"start":"done");
        logadd(",\"usec\":"LLFMT, pci->ticks);
 
-       /* generate actual call statement */
-       stmt = instruction2str(mb, stk, pci, LIST_MAL_ALL);
-       if (stmt) {
-               char *truncated;
-               c = stmt;
-
-               while (*c && isspace((unsigned char)*c))
-                       c++;
-               if(*c){
-                       stmtq = mal_quote(c, strlen(c));
-                       if (stmtq && strlen(stmtq) > LOGLEN/2) {
-                               truncated = truncate_string(stmtq);
-                               GDKfree(stmtq);
-                               stmtq = truncated;
-                       }
-                       if (stmtq != NULL) {
-                               logadd(",\"stmt\":\"%s\"", stmtq);
-                               GDKfree(stmtq);
-                       }
-               }
-               GDKfree(stmt);
-       }
-
 /* EXAMPLE MAL statement argument decomposition
  * The eventparser may assume this layout for ease of parsing
 {
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to