MCPcopy
hub / github.com/cubefs/cubefs / BeginStat

Function BeginStat

util/stat/statistic.go:200–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200func BeginStat() (bgTime *time.Time) {
201 bg := time.Now()
202 return &bg
203}
204
205func EndStat(typeName string, err error, bgTime *time.Time, statCount uint32) error {
206 if gSt == nil {

Callers 15

queryCachePathMethod · 0.92
cacheMethod · 0.92
readMethod · 0.92
flushKeyMethod · 0.92
GetMethod · 0.92
PutMethod · 0.92
AttrMethod · 0.92
ForgetMethod · 0.92
OpenMethod · 0.92
ReleaseMethod · 0.92
ReadMethod · 0.92
WriteMethod · 0.92

Calls

no outgoing calls

Tested by 2

TestStatisticFunction · 0.68
TestStatisticRotateFunction · 0.68