Safe Haskell | None |
---|---|
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
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
Generic TraceSubject Source # | |||||
Defined in Control.Distributed.Process.Management.Internal.Trace.Types
from :: TraceSubject -> Rep TraceSubject x # to :: Rep TraceSubject x -> TraceSubject # | |||||
Show TraceSubject Source # | |||||
Defined in Control.Distributed.Process.Management.Internal.Trace.Types showsPrec :: Int -> TraceSubject -> ShowS # show :: TraceSubject -> String # showList :: [TraceSubject] -> ShowS # | |||||
Binary TraceSubject Source # | |||||
type Rep TraceSubject Source # | |||||
Defined in Control.Distributed.Process.Management.Internal.Trace.Types type Rep TraceSubject = D1 ('MetaData "TraceSubject" "Control.Distributed.Process.Management.Internal.Trace.Types" "distributed-process-0.7.6-F5sZSqR3Cb09RBogyeswiz" 'False) (C1 ('MetaCons "TraceAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TraceProcs" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set ProcessId))) :+: C1 ('MetaCons "TraceNames" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set String))))) |
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
Generic TraceFlags Source # | |||||
Defined in Control.Distributed.Process.Management.Internal.Trace.Types
from :: TraceFlags -> Rep TraceFlags x # to :: Rep TraceFlags x -> TraceFlags # | |||||
Show TraceFlags Source # | |||||
Defined in Control.Distributed.Process.Management.Internal.Trace.Types showsPrec :: Int -> TraceFlags -> ShowS # show :: TraceFlags -> String # showList :: [TraceFlags] -> ShowS # | |||||
Binary TraceFlags Source # | |||||
type Rep TraceFlags Source # | |||||
Defined in Control.Distributed.Process.Management.Internal.Trace.Types type Rep TraceFlags = D1 ('MetaData "TraceFlags" "Control.Distributed.Process.Management.Internal.Trace.Types" "distributed-process-0.7.6-F5sZSqR3Cb09RBogyeswiz" 'False) (C1 ('MetaCons "TraceFlags" 'PrefixI 'True) (((S1 ('MetaSel ('Just "traceSpawned") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe TraceSubject)) :*: S1 ('MetaSel ('Just "traceDied") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe TraceSubject))) :*: (S1 ('MetaSel ('Just "traceRegistered") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe TraceSubject)) :*: S1 ('MetaSel ('Just "traceUnregistered") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe TraceSubject)))) :*: ((S1 ('MetaSel ('Just "traceSend") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe TraceSubject)) :*: S1 ('MetaSel ('Just "traceRecv") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe TraceSubject))) :*: (S1 ('MetaSel ('Just "traceNodes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "traceConnections") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))))) |
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 #