statistic

package
v0.0.0-...-a142604 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2017 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	OldClientQPS    int64
	OldErrLogTotal  int64
	OldSlowLogTotal int64

	ClientConns  int64
	ClientQPS    int64
	ErrLogTotal  int64
	SlowLogTotal int64
}

Counter is a performance counter.

func (*Counter) DecrClientConns

func (c *Counter) DecrClientConns()

DecrClientConns is to decrease client conns.

func (*Counter) FlushCounter

func (c *Counter) FlushCounter()

FlushCounter is to flush the count per second

func (*Counter) IncrClientConns

func (c *Counter) IncrClientConns()

IncrClientConns is to increase client conns.

func (*Counter) IncrClientQPS

func (c *Counter) IncrClientQPS()

IncrClientQPS is to increase client qps.

func (*Counter) IncrErrLogTotal

func (c *Counter) IncrErrLogTotal()

IncrErrLogTotal is to increase err log total.

func (*Counter) IncrSlowLogTotal

func (c *Counter) IncrSlowLogTotal()

IncrSlowLogTotal is to increase slow log total.

Jump to

Keyboard shortcuts

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