MCPcopy Index your code
hub / github.com/CodisLabs/codis / OpStats

Method OpStats

pkg/proxy/stats.go:27–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (s *opStats) OpStats() *OpStats {
28 o := &OpStats{
29 OpStr: s.opstr,
30 Calls: s.calls.Int64(),
31 Usecs: s.nsecs.Int64() / 1e3,
32 Fails: s.fails.Int64(),
33 }
34 if o.Calls != 0 {
35 o.UsecsPercall = o.Usecs / o.Calls
36 }
37 o.RedisErrType = s.redis.errors.Int64()
38 return o
39}
40
41type OpStats struct {
42 OpStr string `json:"opstr"`

Callers 1

GetOpStatsAllFunction · 0.80

Calls 1

Int64Method · 0.45

Tested by

no test coverage detected