MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / init

Function init

rest/debug.go:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36)
37
38func init() {
39 expCb := expvar.NewMap("cb")
40 expPoolHistos = &expvar.Map{}
41 expPoolHistos.Init()
42 expCb.Set("pools", expPoolHistos)
43
44 expOpsHistos = &expvar.Map{}
45 expOpsHistos.Init()
46 expCb.Set("ops", expOpsHistos)
47
48}
49
50func connPoolHisto(name string) metrics.Histogram {
51 histosMu.Lock()

Callers

nothing calls this directly

Calls 2

InitMethod · 0.65
SetMethod · 0.45

Tested by

no test coverage detected