Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cardano.Tools.DBAnalyser.HasAnalysis
Documentation
class (HasAnnTip blk, GetPrevHash blk, Condense (HeaderHash blk)) ⇒ HasAnalysis blk where Source #
Methods
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 #
Methods
mkProtocolInfo ∷ Args blk → IO (ProtocolInfo blk) Source #
Instances
HasProtocolInfo ByronBlock Source # | |
Defined in Cardano.Tools.DBAnalyser.Block.Byron Associated Types data Args ByronBlock Source # Methods mkProtocolInfo ∷ Args ByronBlock → IO (ProtocolInfo ByronBlock) Source # | |
HasProtocolInfo (CardanoBlock StandardCrypto) Source # | |
Defined in Cardano.Tools.DBAnalyser.Block.Cardano Associated Types data Args (CardanoBlock StandardCrypto) Source # Methods mkProtocolInfo ∷ Args (CardanoBlock StandardCrypto) → IO (ProtocolInfo (CardanoBlock StandardCrypto)) Source # | |
HasProtocolInfo (ShelleyBlock (TPraos StandardCrypto) StandardShelley) Source # | Shelley-era specific |
Defined in Cardano.Tools.DBAnalyser.Block.Shelley Associated Types data Args (ShelleyBlock (TPraos StandardCrypto) StandardShelley) Source # Methods mkProtocolInfo ∷ Args (ShelleyBlock (TPraos StandardCrypto) StandardShelley) → IO (ProtocolInfo (ShelleyBlock (TPraos StandardCrypto) StandardShelley)) Source # |
data SizeInBytes Source #
Instances
data WithLedgerState blk Source #
Constructors
WithLedgerState | |
Fields
|