Safe Haskell | None |
---|---|
Language | Haskell2010 |
Text
variant of the tracing functions in Debug.Trace.
Synopsis
- traceEvent :: Text -> a -> a
- traceEventIO :: Text -> IO ()
- traceMarker :: Text -> a -> a
- traceMarkerIO :: Text -> IO ()
Documentation
traceEvent :: Text -> a -> a Source #
Text
variant of traceEvent
.
\(O(n)\) This function marshals the Text
into a ByteString
and
convert it into a null-terminated CString
.
Note that this function doesn't evaluate the Text
if user tracing
in eventlog is disabled.
The input should be shorter than \(2^{16}\) bytes. Otherwise the RTS generates a broken eventlog.
traceEventIO :: Text -> IO () Source #
Text
variant of traceEventIO
.
\(O(n)\) This function marshals the Text
into a ByteString
and
convert it into a null-terminated CString
.
Note that this function doesn't evaluate the Text
if user tracing
in eventlog is disabled.
The input should be shorter than \(2^{16}\) bytes. Otherwise the RTS generates a broken eventlog.
traceMarker :: Text -> a -> a Source #
Text
variant of traceMarker
.
\(O(n)\) This function marshals the Text
into a ByteString
and
convert it into a null-terminated CString
.
Note that this function doesn't evaluate the Text
if user tracing
in eventlog is disabled.
The input should be shorter than \(2^{16}\) bytes. Otherwise the RTS generates a broken eventlog.
traceMarkerIO :: Text -> IO () Source #
Text
variant of traceMarkerIO
.
\(O(n)\) This function marshals the Text
into a ByteString
and
convert it into a null-terminated CString
.
Note that this function doesn't evaluate the Text
if user tracing
in eventlog is disabled.
The input should be shorter than \(2^{16}\) bytes. Otherwise the RTS generates a broken eventlog.