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

Cardano.Tools.DBAnalyser.Analysis.BenchmarkLedgerOps.FileWriting

Synopsis

Output format

getOutputFormatMaybe FilePathIO OutputFormat Source #

Use the provided 'Maybe FilePath' to determine the output format.

The output format is based on the extension (see OutputFormat).

If the extension is not supported the output format defaults to CSV, and this function prints a warning informing the user of this choice.

File writing functions

writeDataPointHandleOutputFormatSlotDataPointIO () Source #

NOTE: This function is not thread safe.

writeHeaderHandleOutputFormatIO () Source #

Write a header for the data points.

This is only needed for the CSV output format.

The position of each header matches the position in which the corresponding field value is written in writeDatapoint. Eg, if writeHeader writes:

"slot slotGap totalTime" ...

then the third value written by writeDataPoint will correspond to totalTime.

writeMetadataHandleOutputFormatLedgerApplicationModeIO () Source #

Write metadata to a JSON file if this is the selected format. Perform a no-op otherwise.