Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Tracing/Debugging support - Types
Synopsis
- 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
Instances
Generic SetTrace Source # | |
Show SetTrace Source # | |
Binary SetTrace Source # | |
Eq SetTrace Source # | |
type Rep SetTrace Source # | |
Defined in Control.Distributed.Process.Management.Internal.Trace.Types type Rep SetTrace = D1 ('MetaData "SetTrace" "Control.Distributed.Process.Management.Internal.Trace.Types" "distributed-process-0.7.7-GrTmSQ41Vn05fpJuQDqdvO" 'False) (C1 ('MetaCons "TraceEnable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProcessId)) :+: C1 ('MetaCons "TraceDisable" 'PrefixI 'False) (U1 :: Type -> Type)) |
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.
Instances
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 | |
|
Instances
A generic ok
response from the trace coordinator.
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 #