ouroboros-consensus-0.1.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Util.TraceSize

Synopsis

Generic

traceSize :: MonadIO m => Tracer m (a, Either CountFailure Word64) -> Tracer m a Source #

Generic helper to trace a value and its size

Ledger DB specific

data LedgerDbSize blk Source #

Constructors

LedgerDbSize 

Fields

Instances

Instances details
StandardHash blk => Show (LedgerDbSize blk) Source # 
Instance details

Defined in Ouroboros.Consensus.Util.TraceSize

traceLedgerDbSize :: MonadIO m => (Word64 -> Bool) -> Tracer m (LedgerDbSize blk) -> Tracer m (LedgerDB l (RealPoint blk)) Source #

Trace the size of the ledger

Only traces slots for which the predicate results true (genesis will be considered to be slot 0).