Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type HeaderMetricsTracer (m :: Type -> Type) = Tracer (STM m) (SlotNo, Time)
- type FetchedMetricsTracer (m :: Type -> Type) = Tracer (STM m) (SizeInBytes, SlotNo, Time)
- data ReportPeerMetrics (m :: Type -> Type) peerAddr = ReportPeerMetrics {
- reportHeader :: Tracer (STM m) (TraceLabelPeer peerAddr (SlotNo, Time))
- reportFetch :: Tracer (STM m) (TraceLabelPeer peerAddr (SizeInBytes, SlotNo, Time))
- data TraceLabelPeer peerid a = TraceLabelPeer peerid a
Documentation
type HeaderMetricsTracer (m :: Type -> Type) = Tracer (STM m) (SlotNo, Time) Source #
Report arrival time of a header for a given slot.
type FetchedMetricsTracer (m :: Type -> Type) = Tracer (STM m) (SizeInBytes, SlotNo, Time) Source #
Report block arrival of given size for some slot at a given time.
data ReportPeerMetrics (m :: Type -> Type) peerAddr Source #
ReportPeerMetrics | |
|
data TraceLabelPeer peerid a #
A peer label for use in Tracer
s. This annotates tracer output as being
associated with a given peer identifier.
TraceLabelPeer peerid a |
Instances
Bifunctor TraceLabelPeer | |
Defined in Network.Mux.Trace bimap :: (a -> b) -> (c -> d) -> TraceLabelPeer a c -> TraceLabelPeer b d # first :: (a -> b) -> TraceLabelPeer a c -> TraceLabelPeer b c # second :: (b -> c) -> TraceLabelPeer a b -> TraceLabelPeer a c # | |
Functor (TraceLabelPeer peerid) | |
Defined in Network.Mux.Trace fmap :: (a -> b) -> TraceLabelPeer peerid a -> TraceLabelPeer peerid b # (<$) :: a -> TraceLabelPeer peerid b -> TraceLabelPeer peerid a # | |
(Show peerid, Show a) => Show (TraceLabelPeer peerid a) | |
Defined in Network.Mux.Trace showsPrec :: Int -> TraceLabelPeer peerid a -> ShowS # show :: TraceLabelPeer peerid a -> String # showList :: [TraceLabelPeer peerid a] -> ShowS # | |
(Eq peerid, Eq a) => Eq (TraceLabelPeer peerid a) | |
Defined in Network.Mux.Trace (==) :: TraceLabelPeer peerid a -> TraceLabelPeer peerid a -> Bool # (/=) :: TraceLabelPeer peerid a -> TraceLabelPeer peerid a -> Bool # |