From 98dd09afdebe8d5b6def4c3b11a4c0495df47de4 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Wed, 16 Dec 2020 12:21:46 -0500 Subject: rts: Introduce --eventlog-flush-interval flag This introduces a flag, --eventlog-flush-interval, which can be used to set an upper bound on the amount of time for which an eventlog event will remain enqueued. This can be useful in real-time monitoring settings. --- includes/rts/Flags.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes') diff --git a/includes/rts/Flags.h b/includes/rts/Flags.h index 35b45b0940..b56cf223b7 100644 --- a/includes/rts/Flags.h +++ b/includes/rts/Flags.h @@ -178,6 +178,8 @@ typedef struct _TRACE_FLAGS { bool sparks_full; /* trace spark events 100% accurately */ bool ticky; /* trace ticky-ticky samples */ bool user; /* trace user events (emitted from Haskell code) */ + Time eventlogFlushTime; /* Time between force eventlog flushes (or 0 if disabled) */ + int eventlogFlushTicks; char *trace_output; /* output filename for eventlog */ } TRACE_FLAGS; -- cgit v1.2.1