Documentation ¶
Index ¶
- Variables
- func ConnsAlive() int64
- func ConnsTotal() int64
- func DecrConns()
- func GetMemUsage() *runtime.MemStats
- func GetPoolActive() int
- func IncrConns() int64
- func IncrOpStats(ct CmdType, e *OpStats)
- func IncrOpTotal(ct CmdType, n int64)
- func OpFails(ct CmdType) int64
- func OpPeriodFails(ct CmdType) int64
- func OpQPS(ct CmdType) int64
- func OpTotal(ct CmdType) int64
- func PeriodResetStats()
- func ResetStats()
- func SetPoolActive(n int)
- func SetPoolStat(activeCount int, idleCount int)
- type CalDoStats
- type CalOpStats
- type CmdType
- type OpStats
- type PoolStat
- type SysUsage
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConnsAlive ¶
func ConnsAlive() int64
func ConnsTotal ¶
func ConnsTotal() int64
func GetMemUsage ¶
func GetPoolActive ¶
func GetPoolActive() int
func IncrOpStats ¶
func IncrOpTotal ¶
func OpPeriodFails ¶
func PeriodResetStats ¶
func PeriodResetStats()
func ResetStats ¶
func ResetStats()
func SetPoolActive ¶
func SetPoolActive(n int)
func SetPoolStat ¶
Types ¶
type CalDoStats ¶
type CalDoStats struct {
// contains filtered or unexported fields
}
func NewCalDoStats ¶
func NewCalDoStats() *CalDoStats
func (*CalDoStats) FlushOpStats ¶
func (s *CalDoStats) FlushOpStats(ct CmdType)
func (*CalDoStats) IncrOpFails ¶
func (s *CalDoStats) IncrOpFails(opstr string, err error) error
func (*CalDoStats) IncrOpStats ¶
func (s *CalDoStats) IncrOpStats(opstr string, startUnixNano int64)
func (*CalDoStats) IncrOpTotal ¶
func (s *CalDoStats) IncrOpTotal()
type CalOpStats ¶
type CalOpStats struct { OpStr string `json:"opstr"` Calls int64 `json:"calls"` Usecs int64 `json:"usecs"` UsecsPercall int64 `json:"usecs_percall"` Fails int64 `json:"fails"` PeriodFails int64 `json:"periodfails"` }
func GetOpStatsAll ¶
func GetOpStatsAll(ct CmdType) ([]*CalOpStats, error)
type OpStats ¶
type OpStats struct { Opstr string Calls atomic.Int64 Nsecs atomic.Int64 Fails atomic.Int64 PeriodFails atomic.Int64 }
func (*OpStats) OpStats ¶
func (s *OpStats) OpStats() *CalOpStats
type PoolStat ¶
func GetPoolStat ¶
func GetPoolStat() PoolStat
Click to show internal directories.
Click to hide internal directories.