Changeset: 8dee38448c8f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8dee38448c8f
Modified Files:
monetdb5/mal/mal_profiler.c
Branch: acticloud
Log Message:
Added a field waiting in the heartbeats
Its value is an integer that shows how many threads are waiting. This is an
initial implementation of a direct (i.e. not using the OS) performance measure
communicated through the profiler.
diffs (11 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
@@ -477,6 +477,7 @@ profilerHeartbeatEvent(char *alter)
#endif
logadd("\"state\":\"%s\",%s",alter,prettify);
logadd("\"cpuload\":%s%s",cpuload,prettify);
+ logadd("\"waiting\":%ld%s",GDKnr_threads -
MALrunningThreads(),prettify);
logadd("}\n"); // end marker
logjsonInternal(logbuffer);
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list