| Safe Haskell | None |
|---|---|
| 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 → [TextBuilder] Source #
This method was introduced for the sake of the BenchmarkLedgerOps pass.
blockApplicationMetrics ∷ [(TextBuilder, WithLedgerState blk → IO TextBuilder)] 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 #
Minimal complete definition
Methods
mkProtocolInfo ∷ Args blk → IO (ProtocolInfo blk) Source #
mkProtocolInfoAndBackend ∷ Args blk → IO (ProtocolInfo blk, Maybe LedgerDBBackend) Source #
The protocol info, together with the LedgerDB backend (and its settings) that the node configuration file selects, which db-analyser uses when the command line does not select one. Both are produced by a single call so that the configuration only has to be read once.
Defaults to no backend (nothing to read one from); only the Cardano instance overrides this.
Instances
| HasProtocolInfo (CardanoBlock StandardCrypto) Source # | |||||
Defined in Cardano.Tools.DBAnalyser.Block.Cardano Associated Types
Methods mkProtocolInfo ∷ Args (CardanoBlock StandardCrypto) → IO (ProtocolInfo (CardanoBlock StandardCrypto)) Source # mkProtocolInfoAndBackend ∷ Args (CardanoBlock StandardCrypto) → IO (ProtocolInfo (CardanoBlock StandardCrypto), Maybe LedgerDBBackend) Source # | |||||
data SizeInBytes #
Instances
data WithLedgerState blk Source #
Constructors
| WithLedgerState | |
Fields
| |