statslogger

package
v0.0.0-...-653efa9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleStats

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

Track statistics for the min, max, and mean number of free connections over a time interval (yes, this could be generalized)

This is very simple, but still seems worth breaking out into a separate file.

func (*SimpleStats) Clear

func (sp *SimpleStats) Clear()

func (*SimpleStats) Max

func (sp *SimpleStats) Max() int64

func (*SimpleStats) Mean

func (sp *SimpleStats) Mean() int64

func (*SimpleStats) Min

func (sp *SimpleStats) Min() int64

func (*SimpleStats) Sample

func (sp *SimpleStats) Sample(cnt int64)

func (*SimpleStats) Samples

func (sp *SimpleStats) Samples() int64

func (*SimpleStats) Total

func (sp *SimpleStats) Total() int64

Jump to

Keyboard shortcuts

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