Changeset: 6ee27d5f0787 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6ee27d5f0787
Modified Files:
        monetdb5/mal/mal_profiler.c
Branch: Jan2022_prof_ext
Log Message:

Uniformize JSON fields.


diffs (32 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
@@ -184,7 +184,7 @@ logadd(struct logbuf *logbuf, const char
  * Profiling a generic event follows the same implementation of ProfilerEvent.
  */
 static str
-prepare_generic_event(str face, struct GenericEvent e, int state)
+prepare_generic_event(str phase, struct GenericEvent e, int state)
 {
        struct logbuf logbuf = {0};
        lng clk = GDKusec();
@@ -198,8 +198,8 @@ prepare_generic_event(str face, struct G
                           ",\"thread\":%d"
                           ",\"face\":\"%s\""
                           ",\"state\":\"%s\""
-                          ",\"client\":\"%d\""
-                          ",\"transaction_id\":"ULLFMT
+                          ",\"clientid\":\"%d\""
+                          ",\"transactionid\":"ULLFMT
                           ",\"tag\":"OIDFMT
                           ",\"query\":\"%s\""
                           ",\"rc\":\"%d\""
@@ -208,7 +208,7 @@ prepare_generic_event(str face, struct G
                           clk,
                           mclk,
                           THRgettid(),
-                          face,
+                          phase,
                           state ? "done" : "start",
                           e.cid ? *e.cid : 0,
                           e.tid ? *e.tid : 0,
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to