Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class (HasAnnTip blk, GetPrevHash blk, Condense (HeaderHash blk)) ⇒ HasAnalysis blk where Source #
countTxOutputs ∷ blk → Int Source #
blockTxSizes ∷ blk → [SizeInBytes] Source #
knownEBBs ∷ proxy blk → Map (HeaderHash blk) (ChainHash blk) Source #
emitTraces ∷ WithLedgerState blk → [String] Source #
Emit trace markers at points in processing.
blockStats ∷ blk → [Builder] Source #
This method was introduced for the sake of the BenchmarkLedgerOps
pass.
blockApplicationMetrics ∷ [(Builder, WithLedgerState blk → IO Builder)] Source #
This function allows to define different metrics about block application.
The block application metrics will be stored in a CSV file. This method is used by 'db-analyser' to define the headers of the resulting data, and how to compute, for a given row, each column of the metrics.
The first component of each element in blockApplicationMetrics
represents a header in the resulting CSV file.
Given a block application 'x :: WithLedgerState blk', the metrics
for that block application are calculated using the second
component of blockApplicationMetrics
.
The block application metrics are mapped to an IO action because certain metrics such as the size of data need to be performed in the IO monad.
Instances
class HasProtocolInfo blk where Source #
mkProtocolInfo ∷ Args blk → IO (ProtocolInfo blk) Source #
Instances
HasProtocolInfo ByronBlock Source # | |
Defined in Cardano.Tools.DBAnalyser.Block.Byron data Args ByronBlock Source # | |
HasProtocolInfo (CardanoBlock StandardCrypto) Source # | |
Defined in Cardano.Tools.DBAnalyser.Block.Cardano data Args (CardanoBlock StandardCrypto) Source # | |
HasProtocolInfo (ShelleyBlock (TPraos StandardCrypto) StandardShelley) Source # | Shelley-era specific |
data SizeInBytes Source #
Instances
data WithLedgerState blk Source #
WithLedgerState | |
|