Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AnalysisEnv m blk startFrom = AnalysisEnv {
- cfg ∷ TopLevelConfig blk
- startFrom ∷ AnalysisStartFrom blk startFrom
- db ∷ ImmutableDB IO blk
- registry ∷ ResourceRegistry IO
- ledgerDbFS ∷ SomeHasFS IO
- limit ∷ Limit
- tracer ∷ Tracer m (TraceEvent blk)
- data AnalysisName
- = ShowSlotBlockNo
- | CountTxOutputs
- | ShowBlockHeaderSize
- | ShowBlockTxsSize
- | ShowEBBs
- | OnlyValidation
- | StoreLedgerStateAt SlotNo LedgerApplicationMode (Flag "DoDiskSnapshotChecksum")
- | CountBlocks
- | CheckNoThunksEvery Word64
- | TraceLedgerProcessing
- | BenchmarkLedgerOps (Maybe FilePath) LedgerApplicationMode
- | ReproMempoolAndForge Int
- | GetBlockApplicationMetrics NumberOfBlocks (Maybe FilePath)
- data AnalysisResult
- data AnalysisStartFrom blk startFrom where
- FromPoint ∷ Point blk → AnalysisStartFrom blk StartFromPoint
- FromLedgerState ∷ ExtLedgerState blk → AnalysisStartFrom blk StartFromLedgerState
- data LedgerApplicationMode
- data Limit
- newtype NumberOfBlocks = NumberOfBlocks {}
- data SStartFrom startFrom where
- data SomeAnalysis blk = ∀ startFrom.SingI startFrom ⇒ SomeAnalysis (Proxy startFrom) (Analysis blk startFrom)
- data StartFrom
- runAnalysis ∷ ∀ blk. (HasAnalysis blk, HasTxId (GenTx blk), HasTxs blk, LedgerSupportsMempool blk, LedgerSupportsProtocol blk, LgrDbSerialiseConstraints blk) ⇒ AnalysisName → SomeAnalysis blk
Documentation
data AnalysisEnv m blk startFrom Source #
AnalysisEnv | |
|
data AnalysisName Source #
ShowSlotBlockNo | |
CountTxOutputs | |
ShowBlockHeaderSize | |
ShowBlockTxsSize | |
ShowEBBs | |
OnlyValidation | |
StoreLedgerStateAt SlotNo LedgerApplicationMode (Flag "DoDiskSnapshotChecksum") | |
CountBlocks | |
CheckNoThunksEvery Word64 | |
TraceLedgerProcessing | |
BenchmarkLedgerOps (Maybe FilePath) LedgerApplicationMode | |
ReproMempoolAndForge Int | |
GetBlockApplicationMetrics NumberOfBlocks (Maybe FilePath) | Compute different block application metrics every The metrics will be written to the provided file path, or to the standard output if no file path is specified. |
Instances
Show AnalysisName Source # | |
Defined in Cardano.Tools.DBAnalyser.Types showsPrec ∷ Int → AnalysisName → ShowS # show ∷ AnalysisName → String # showList ∷ [AnalysisName] → ShowS # |
data AnalysisResult Source #
Instances
Show AnalysisResult Source # | |
Defined in Cardano.Tools.DBAnalyser.Types showsPrec ∷ Int → AnalysisResult → ShowS # show ∷ AnalysisResult → String # showList ∷ [AnalysisResult] → ShowS # | |
Eq AnalysisResult Source # | |
Defined in Cardano.Tools.DBAnalyser.Types (==) ∷ AnalysisResult → AnalysisResult → Bool # (/=) ∷ AnalysisResult → AnalysisResult → Bool # |
data AnalysisStartFrom blk startFrom where Source #
FromPoint ∷ Point blk → AnalysisStartFrom blk StartFromPoint | |
FromLedgerState ∷ ExtLedgerState blk → AnalysisStartFrom blk StartFromLedgerState |
data LedgerApplicationMode Source #
Whether to apply blocks to a ledger state via reapplication (eg skipping signature checksPlutus scripts) or full application/ (much slower).
Instances
newtype NumberOfBlocks Source #
Instances
Num NumberOfBlocks Source # | |
Defined in Cardano.Tools.DBAnalyser.Types | |
Read NumberOfBlocks Source # | |
Defined in Cardano.Tools.DBAnalyser.Types | |
Show NumberOfBlocks Source # | |
Defined in Cardano.Tools.DBAnalyser.Types showsPrec ∷ Int → NumberOfBlocks → ShowS # show ∷ NumberOfBlocks → String # showList ∷ [NumberOfBlocks] → ShowS # | |
Eq NumberOfBlocks Source # | |
Defined in Cardano.Tools.DBAnalyser.Types (==) ∷ NumberOfBlocks → NumberOfBlocks → Bool # (/=) ∷ NumberOfBlocks → NumberOfBlocks → Bool # |
data SStartFrom startFrom where Source #
data SomeAnalysis blk Source #
∀ startFrom.SingI startFrom ⇒ SomeAnalysis (Proxy startFrom) (Analysis blk startFrom) |
Whether the db-analyser pass needs access to a ledger state.
Instances
SingI 'StartFromLedgerState Source # | |
Defined in Cardano.Tools.DBAnalyser.Analysis | |
SingI 'StartFromPoint Source # | |
Defined in Cardano.Tools.DBAnalyser.Analysis | |
type Sing Source # | |
Defined in Cardano.Tools.DBAnalyser.Analysis |
runAnalysis ∷ ∀ blk. (HasAnalysis blk, HasTxId (GenTx blk), HasTxs blk, LedgerSupportsMempool blk, LedgerSupportsProtocol blk, LgrDbSerialiseConstraints blk) ⇒ AnalysisName → SomeAnalysis blk Source #