| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Tools.DBAnalyser.Types
Synopsis
- defaultLSMDatabasePath ∷ FilePath
- defaultLSMExportPath ∷ FilePath
- selectLedgerDBBackend ∷ Maybe LedgerDBBackendFlags → Maybe LedgerDBBackend → Maybe LedgerDBBackend
- data AnalysisName
- = ShowSlotBlockNo
- | CountTxOutputs
- | ShowBlockHeaderSize
- | ShowBlockTxsSize
- | ShowEBBs
- | OnlyValidation
- | StoreLedgerStateAt SlotNo LedgerApplicationMode
- | CountBlocks
- | CheckNoThunksEvery Word64
- | TraceLedgerProcessing
- | BenchmarkLedgerOps (Maybe FilePath) LedgerApplicationMode
- | ReproMempoolAndForge Int
- | GetBlockApplicationMetrics NumberOfBlocks (Maybe FilePath)
- data AnalysisResult
- data DBAnalyserConfig = DBAnalyserConfig {}
- data LSMFlags = LSMFlags {}
- data LSMOptions = LSMOptions {}
- data LedgerApplicationMode
- data LedgerDBBackend
- data LedgerDBBackendFlags
- data Limit
- newtype NumberOfBlocks = NumberOfBlocks {}
- data SelectDB = SelectImmutableDB (WithOrigin SlotNo)
- data ValidateBlocks
Documentation
defaultLSMDatabasePath ∷ FilePath Source #
The directory holding the working LSM database, used when the node
configuration file does not set LedgerDB.Backend.LSM.DatabasePath.
defaultLSMExportPath ∷ FilePath Source #
The directory that --lsm-export exports snapshots into, when the node
configuration file does not set LedgerDB.Backend.LSM.ExportPath.
selectLedgerDBBackend ∷ Maybe LedgerDBBackendFlags → Maybe LedgerDBBackend → Maybe LedgerDBBackend Source #
The backend to use, from the one the command line selects and the one the
node configuration file selects. The command line wins, but --lsm against
a configuration that also selects LSM overrides only what its switches set:
the paths come from the configuration, and --lsm-export exports into the
configured ExportPath when there is one. Against any other configuration,
--lsm starts from the defaults.
data AnalysisName Source #
Constructors
| ShowSlotBlockNo | |
| CountTxOutputs | |
| ShowBlockHeaderSize | |
| ShowBlockTxsSize | |
| ShowEBBs | |
| OnlyValidation | |
| StoreLedgerStateAt SlotNo LedgerApplicationMode | |
| 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 Methods showsPrec ∷ Int → AnalysisName → ShowS # show ∷ AnalysisName → String # showList ∷ [AnalysisName] → ShowS # | |
data AnalysisResult Source #
Constructors
| ResultCountBlock Int | |
| ResultMaxHeaderSize Word16 |
Instances
| Eq AnalysisResult Source # | |
Defined in Cardano.Tools.DBAnalyser.Types Methods (==) ∷ AnalysisResult → AnalysisResult → Bool # (/=) ∷ AnalysisResult → AnalysisResult → Bool # | |
| Show AnalysisResult Source # | |
Defined in Cardano.Tools.DBAnalyser.Types Methods showsPrec ∷ Int → AnalysisResult → ShowS # show ∷ AnalysisResult → String # showList ∷ [AnalysisResult] → ShowS # | |
data DBAnalyserConfig Source #
Constructors
| DBAnalyserConfig | |
Fields
| |
The switches that accompany --lsm. Each can only turn its setting on, so
False leaves the setting as the node configuration file has it.
Constructors
| LSMFlags | |
Fields
| |
data LSMOptions Source #
The settings of the LSM-trees backend.
Constructors
| LSMOptions | |
Fields
| |
data LedgerApplicationMode Source #
Whether to apply blocks to a ledger state via reapplication (eg skipping signature checksPlutus scripts) or full application/ (much slower).
Constructors
| LedgerReapply | |
| LedgerApply |
Instances
| Eq LedgerApplicationMode Source # | |
Defined in Cardano.Tools.DBAnalyser.Types Methods (==) ∷ LedgerApplicationMode → LedgerApplicationMode → Bool # (/=) ∷ LedgerApplicationMode → LedgerApplicationMode → Bool # | |
| Show LedgerApplicationMode Source # | |
Defined in Cardano.Tools.DBAnalyser.Types Methods showsPrec ∷ Int → LedgerApplicationMode → ShowS # show ∷ LedgerApplicationMode → String # showList ∷ [LedgerApplicationMode] → ShowS # | |
data LedgerDBBackend Source #
Constructors
| V2InMem | |
| V2LSM LSMOptions |
data LedgerDBBackendFlags Source #
The LedgerDB backend as the command line selects it: --in-mem, or --lsm
with its switches.
newtype NumberOfBlocks Source #
Constructors
| NumberOfBlocks | |
Fields | |
Instances
| Eq NumberOfBlocks Source # | |
Defined in Cardano.Tools.DBAnalyser.Types Methods (==) ∷ NumberOfBlocks → NumberOfBlocks → Bool # (/=) ∷ NumberOfBlocks → NumberOfBlocks → Bool # | |
| Num NumberOfBlocks Source # | |
Defined in Cardano.Tools.DBAnalyser.Types | |
| Read NumberOfBlocks Source # | |
Defined in Cardano.Tools.DBAnalyser.Types Methods readsPrec ∷ Int → ReadS NumberOfBlocks # readList ∷ ReadS [NumberOfBlocks] # | |
| Show NumberOfBlocks Source # | |
Defined in Cardano.Tools.DBAnalyser.Types Methods showsPrec ∷ Int → NumberOfBlocks → ShowS # show ∷ NumberOfBlocks → String # showList ∷ [NumberOfBlocks] → ShowS # | |
Constructors
| SelectImmutableDB (WithOrigin SlotNo) |
data ValidateBlocks Source #
The extent of the ChainDB on-disk files validation. This is completely unrelated to validation of the ledger rules.
Constructors
| ValidateAllBlocks | |
| MinimumBlockValidation |