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.
Click to show internal directories.
Click to hide internal directories.