stats

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package stats provides utilities for collecting and printing statistics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector map[gen.Table]*tblMergeStats

Collector collects per-table C(R)U(D)-statistics.

func NewCollector

func NewCollector() Collector

NewCollector creates a new mergeStats instance.

func (Collector) Inserted

func (c Collector) Inserted(table gen.Table, n int64)

Inserted adds `n` inserts to the statistics for `table`.

func (Collector) Noop

func (c Collector) Noop(table gen.Table, n int64)

Noop adds `n` inserts to the statistics for `table`.

func (Collector) Print

func (c Collector) Print(logger *log.Logger)

Print prints the collected statistics to `logger` per line, retaining potential logging prefixes.

func (Collector) Updated

func (c Collector) Updated(table gen.Table, n int64)

Updated adds `n` inserts to the statistics for `table`.

Jump to

Keyboard shortcuts

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