Safe Haskell | None |
---|---|
Language | Haskell98 |
Tracing/Debugging support - Types
- data SetTrace
- data TraceSubject
- = TraceAll
- | TraceProcs !(Set ProcessId)
- | TraceNames !(Set String)
- data TraceFlags = TraceFlags {
- traceSpawned :: !(Maybe TraceSubject)
- traceDied :: !(Maybe TraceSubject)
- traceRegistered :: !(Maybe TraceSubject)
- traceUnregistered :: !(Maybe TraceSubject)
- traceSend :: !(Maybe TraceSubject)
- traceRecv :: !(Maybe TraceSubject)
- traceNodes :: !Bool
- traceConnections :: !Bool
- data TraceArg
- data TraceOk = TraceOk
- traceLog :: MxEventBus -> String -> IO ()
- traceLogFmt :: MxEventBus -> String -> [TraceArg] -> IO ()
- traceEvent :: MxEventBus -> MxEvent -> IO ()
- traceMessage :: Serializable m => MxEventBus -> m -> IO ()
- defaultTraceFlags :: TraceFlags
- enableTrace :: MxEventBus -> ProcessId -> IO ()
- enableTraceSync :: MxEventBus -> SendPort TraceOk -> ProcessId -> IO ()
- disableTrace :: MxEventBus -> IO ()
- disableTraceSync :: MxEventBus -> SendPort TraceOk -> IO ()
- getTraceFlags :: MxEventBus -> SendPort TraceFlags -> IO ()
- setTraceFlags :: MxEventBus -> TraceFlags -> IO ()
- setTraceFlagsSync :: MxEventBus -> SendPort TraceOk -> TraceFlags -> IO ()
- getCurrentTraceClient :: MxEventBus -> SendPort (Maybe ProcessId) -> IO ()
Documentation
data TraceSubject Source
Defines which processes will be traced by a given TraceFlag
,
either by name, or ProcessId
. Choosing TraceAll
is by far
the most efficient approach, as the tracer process therefore
avoids deciding whether or not a trace event is viable.
data TraceFlags Source
Defines what will be traced. Flags that control tracing of
Process
events, take a TraceSubject
controlling which processes
should generate trace events in the target process.
TraceFlags | |
|
A generic ok
response from the trace coordinator.
traceLog :: MxEventBus -> String -> IO () Source
traceLogFmt :: MxEventBus -> String -> [TraceArg] -> IO () Source
traceEvent :: MxEventBus -> MxEvent -> IO () Source
traceMessage :: Serializable m => MxEventBus -> m -> IO () Source
enableTrace :: MxEventBus -> ProcessId -> IO () Source
enableTraceSync :: MxEventBus -> SendPort TraceOk -> ProcessId -> IO () Source
disableTrace :: MxEventBus -> IO () Source
disableTraceSync :: MxEventBus -> SendPort TraceOk -> IO () Source
getTraceFlags :: MxEventBus -> SendPort TraceFlags -> IO () Source
setTraceFlags :: MxEventBus -> TraceFlags -> IO () Source
setTraceFlagsSync :: MxEventBus -> SendPort TraceOk -> TraceFlags -> IO () Source
getCurrentTraceClient :: MxEventBus -> SendPort (Maybe ProcessId) -> IO () Source