ghc-trace-events-0.1.0.1: Faster traceEvent and traceMarker, and binary object logging for eventlog

Safe HaskellNone
LanguageHaskell2010

Debug.Trace.String

Description

Drop-in replacements for the event tracing functions in Debug.Trace but are faster when user tracing is disabled.

Synopsis

Documentation

traceEvent :: String -> a -> a Source #

Drop-in replacement for traceEvent but is more efficient if user tracing in eventlog is disabled.

Note that this function doesn't evaluate the String if user tracing in eventlog is disabled.

The input should be shorter than \(2^{16}\) bytes. Otherwise the RTS generates a broken eventlog.

traceEventIO :: String -> IO () Source #

Drop-in replacement for traceEventIO but is more efficient if user tracing in eventlog is disabled.

Note that this function doesn't evaluate the String if user tracing in eventlog is disabled.

The input should be shorter than \(2^{16}\) bytes. Otherwise the RTS generates a broken eventlog.

traceMarker :: String -> a -> a Source #

Drop-in replacement for traceMarker but is more efficient if user tracing in eventlog is disabled.

Note that this function doesn't evaluate the String if user tracing in eventlog is disabled.

The input should be shorter than \(2^{16}\) bytes. Otherwise the RTS generates a broken eventlog.

traceMarkerIO :: String -> IO () Source #

Drop-in replacement for traceMarkerIO but is more efficient if user tracing in eventlog is disabled.

Note that this function doesn't evaluate the String if user tracing in eventlog is disabled.

The input should be shorter than \(2^{16}\) bytes. Otherwise the RTS generates a broken eventlog.