stats

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Average

type Average struct {
	Duration []time.Duration
	// contains filtered or unexported fields
}

func NewAverage

func NewAverage(title string, windowSize int, lastX int) *Average

func (*Average) Add

func (a *Average) Add(d time.Duration)

func (*Average) Average

func (a *Average) Average() time.Duration

func (*Average) LastItemsAverage

func (a *Average) LastItemsAverage(count int) time.Duration

func (*Average) Log

func (a *Average) Log(logger *zap.Logger)

type Stats

type Stats struct {
	BlockCount                int
	WaitDurationBetweenBlocks *Average
	BlockProcessingDuration   *Average
	UnmarshallingDuration     *Average
	BlockInsertDuration       *Average
	EntitiesInsertDuration    *Average
	FlushDuration             *Average
	LastBlockProcessAt        time.Time
	TotalProcessingDuration   time.Duration
	TotalDurationBetween      time.Duration
	// contains filtered or unexported fields
}

func NewStats

func NewStats(logger *zap.Logger) *Stats

func (*Stats) Log

func (s *Stats) Log()

Jump to

Keyboard shortcuts

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