even package:base
This module provides scalable event notification for file descriptors
and timeouts.
This module should be considered GHC internal.
- ---------------------------------------------------------------------------
Immediately flush the event log, if enabled.
The
traceEvent function behaves like
trace with the
difference that the message is emitted to the eventlog, if eventlog
tracing is available and user event tracing is enabled at runtime.
It is suitable for use in pure code. In an IO context use
traceEventIO instead.
Note that when using GHC's SMP runtime, it is possible (but rare) to
get duplicate events emitted if two CPUs simultaneously evaluate the
same thunk that uses
traceEvent.
The
traceEventIO function emits a message to the eventlog, if
eventlog tracing is available and user event tracing is enabled at
runtime.
Compared to
traceEvent,
traceEventIO sequences the event
with respect to other IO actions.
Like
traceEvent, but emits the result of calling a function on
its argument.
Emits an event via the RTS tracing framework. The contents of the
event is the binary object passed as the first argument with the given
length passed as the second argument. The event will be emitted to the
.eventlog file.
Emits an event via the RTS tracing framework. The contents of the
event is the zero-terminated byte string passed as the first argument.
The event will be emitted either to the .eventlog file, or to
stderr, depending on the runtime RTS flags.
Retrieve the system event manager for the capability on which the
calling thread is running.
This function always returns
Just the current thread's event
manager when using the threaded RTS and
Nothing otherwise.
send tracing events to the event log