Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
200
func
BeginStat() (bgTime *time.Time) {
201
bg := time.Now()
202
return
&bg
203
}
204
205
func
EndStat(typeName string, err error, bgTime *time.Time, statCount uint32) error {
206
if
gSt == nil {
Callers
15
queryCachePath
Method · 0.92
cache
Method · 0.92
read
Method · 0.92
flushKey
Method · 0.92
Get
Method · 0.92
Put
Method · 0.92
Attr
Method · 0.92
Forget
Method · 0.92
Open
Method · 0.92
Release
Method · 0.92
Read
Method · 0.92
Write
Method · 0.92
Calls
no outgoing calls
Tested by
2
TestStatistic
Function · 0.68
TestStatisticRotate
Function · 0.68