Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data PeerMetrics m p Source #
PeerMetrics | |
|
reportMetric :: forall m p. MonadSTM m => PeerMetrics m p -> ReportPeerMetrics m ( ConnectionId p) Source #
nullMetric :: MonadSTM m => ReportPeerMetrics m p Source #
slotMetricKey :: SlotNo -> Int Source #
headerMetricTracer :: forall m p. MonadSTM m => PeerMetrics m p -> Tracer ( STM m) ( TraceLabelPeer ( ConnectionId p) ( SlotNo , Time )) Source #
fetchedMetricTracer :: forall m p. MonadSTM m => PeerMetrics m p -> Tracer ( STM m) ( TraceLabelPeer ( ConnectionId p) ( SizeInBytes , SlotNo , Time )) Source #
getHeaderMetrics :: MonadSTM m => PeerMetrics m p -> STM m ( SlotMetric p) Source #
getFetchedMetrics :: MonadSTM m => PeerMetrics m p -> STM m ( SlotMetric (p, SizeInBytes )) Source #
metricsTracer :: forall m p. MonadSTM m => StrictTVar m ( SlotMetric p) -> Tracer ( STM m) ( TraceLabelPeer p ( SlotNo , Time )) Source #
newPeerMetric :: MonadSTM m => m ( PeerMetrics m p) Source #
upstreamyness :: forall p. Ord p => SlotMetric p -> Map p Int Source #
fetchynessBytes :: forall p. Ord p => SlotMetric (p, SizeInBytes ) -> Map p Int Source #
fetchynessBlocks :: forall p. Ord p => SlotMetric (p, SizeInBytes ) -> Map p Int Source #