Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chainreactors/spray
/ Stats
Method
Stats
core/runner.go:79–83 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
77
}
78
79
func
(r *Runner) Stats() RunnerStats {
80
r.statsMu.Lock()
81
defer
r.statsMu.Unlock()
82
return
r.stats
83
}
84
85
func
(r *Runner) recordStat(stat *pkg.Statistor) {
86
if
stat == nil {
Callers
2
TestRecordStat_ConcurrentSafety
Function · 0.95
TestRecordStat_NilStat
Function · 0.95
Calls
no outgoing calls
Tested by
2
TestRecordStat_ConcurrentSafety
Function · 0.76
TestRecordStat_NilStat
Function · 0.76