mafoc-0.0.0.1
Safe HaskellSafe-Inferred
LanguageHaskell2010

Mafoc.Speed

Synopsis

Measuer local chainsync speed

mkCallback :: (LocalNodeConnectInfo CardanoMode -> ChainPoint -> (ChainSyncEvent (BlockInMode CardanoMode) -> IO ()) -> IO b) -> FilePath -> FilePath -> Maybe ChainPoint -> Maybe SlotNo -> IO b #

Rewindable index

data NoopHandler #

Constructors

NoopHandler 

Instances

Instances details
Buffered NoopHandler # 
Instance details

Defined in Mafoc.Speed

Methods

persistToStorage :: Foldable f => f (StorableEvent NoopHandler) -> NoopHandler -> StorableMonad NoopHandler NoopHandler

getStoredEvents :: NoopHandler -> StorableMonad NoopHandler [StorableEvent NoopHandler]

Rewindable NoopHandler # 
Instance details

Defined in Mafoc.Speed

Methods

rewindStorage :: StorablePoint NoopHandler -> NoopHandler -> StorableMonad NoopHandler NoopHandler

HasPoint (StorableEvent NoopHandler) ChainPoint # 
Instance details

Defined in Mafoc.Speed

Methods

getPoint :: StorableEvent NoopHandler -> ChainPoint

data StorableEvent NoopHandler # 
Instance details

Defined in Mafoc.Speed

data StorableEvent NoopHandler = NoopEvent ChainPoint
type StorableMonad NoopHandler # 
Instance details

Defined in Mafoc.Speed

type StorableMonad NoopHandler = IO
type StorablePoint NoopHandler # 
Instance details

Defined in Mafoc.Speed

type StorablePoint NoopHandler = ChainPoint

rewindableIndex :: FilePath -> Maybe ChainPoint -> Maybe SlotNo -> NetworkId -> IO () #

Exit loops with exception

printAndDieWhenEnd :: SlotNo -> BlockInMode CardanoMode -> IO () #