util

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToByte

func BoolToByte(b bool) byte

Types

type CompactionStats

type CompactionStats struct {
	Compacted    bool     // True when compaction occured
	FrameRecords Fraction // Frame records stats
	ScoreRecords Fraction // Score records stats
	FrameFiles   Fraction // Frame files stats
}

type Fraction

type Fraction struct {
	WholeValue int
	PartValue  int
}

func (*Fraction) IntPercentage

func (frac *Fraction) IntPercentage() int

type StatsCollector

type StatsCollector struct {
	NumFilesToProcess   int
	NumFramesToGenerate int
	NumFramesGenerated  int
	NumTotalComparisons int
	NumComparisonsMade  int
	NumMismatches       int
	NumCacheHits        int
	NumMatches          int
	NumFalsePositives   int
	Compaction          CompactionStats

	QuietMode bool // don't show progress
	// contains filtered or unexported fields
}

func (*StatsCollector) EstimateCompletionETA

func (stats *StatsCollector) EstimateCompletionETA() (int, error)

func (*StatsCollector) IncNumComparisonsMade

func (stats *StatsCollector) IncNumComparisonsMade()

func (*StatsCollector) IncNumFilesGenerated

func (stats *StatsCollector) IncNumFilesGenerated()

func (*StatsCollector) ShowSummary

func (stats *StatsCollector) ShowSummary() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL