ouroboros-consensus-cardano-0.20.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
Monoid SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Semigroup SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Enum SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Generic SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Associated Types

type Rep SizeInBytesTypeType #

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

BoundedMeasure SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

Measure SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

NoThunks SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

type Rep SizeInBytes 
Instance details

Defined in Ouroboros.Network.SizeInBytes

type Rep SizeInBytes = D1 ('MetaData "SizeInBytes" "Ouroboros.Network.SizeInBytes" "ouroboros-network-api-0.11.0.0-51203573fcfcfd3b2c06491320742b9da13f8f293bfcf4fc69f087b3c7b975f1" 'True) (C1 ('MetaCons "SizeInBytes" 'PrefixI 'True) (S1 ('MetaSel ('Just "getSizeInBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

data WithLedgerState blk Source #

Constructors

WithLedgerState 

Fields