stats

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

package stats tracks operation latencies

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTable

func FormatTable(names []string, ops []Op) string

func WriteTable

func WriteTable(names []string, ops []Op, w io.Writer)

Types

type Op

type Op struct {
	// contains filtered or unexported fields
}

func (Op) MicrosPerOp

func (op Op) MicrosPerOp() float64

func (*Op) Record

func (op *Op) Record(start time.Time)

func (*Op) Reset added in v0.6.1

func (op *Op) Reset()

Jump to

Keyboard shortcuts

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