ouroboros-consensus-cardano-0.16.0.0: The instantation of the Ouroboros consensus layer used by Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 #

emitTracesWithLedgerState 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

Instances details
HasAnalysis ByronBlock Source # 
Instance details

Defined in Cardano.Tools.DBAnalyser.Block.Byron

(HasAnnTip (CardanoBlock StandardCrypto), GetPrevHash (CardanoBlock StandardCrypto)) ⇒ HasAnalysis (CardanoBlock StandardCrypto) Source # 
Instance details

Defined in Cardano.Tools.DBAnalyser.Block.Cardano

(ShelleyCompatible proto era, PerEraAnalysis era) ⇒ HasAnalysis (ShelleyBlock proto era) Source #

Usable for each Shelley-based era

Instance details

Defined in Cardano.Tools.DBAnalyser.Block.Shelley

data SizeInBytes Source #

Instances

Instances details
Enum SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Num SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Integral SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Real SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Show SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

NFData SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Methods

rnfSizeInBytes → () #

Eq SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Ord SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

NoThunks SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

data WithLedgerState blk Source #

Constructors

WithLedgerState 

Fields