stat

package
v0.0.0-...-fa4cddc Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Statistic

type Statistic struct {
}

func NewStatistic

func NewStatistic(logBase string, logMaxSize int64, logMaxNum int,
	timeOutUs [maxTimeoutLevel]uint32, useMutex bool) *Statistic

func (*Statistic) BeginStat

func (st *Statistic) BeginStat() (bgTime *time.Time)

func (*Statistic) ClearStat

func (st *Statistic) ClearStat() error

func (*Statistic) CloseStat

func (st *Statistic) CloseStat()

func (*Statistic) EndStat

func (st *Statistic) EndStat(typeName string, err error, bgTime *time.Time, statCount uint32) error

func (*Statistic) StatBandWidth

func (st *Statistic) StatBandWidth(typeName string, Size uint32)

func (*Statistic) WriteStat

func (st *Statistic) WriteStat() error

Jump to

Keyboard shortcuts

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