MCPcopy
hub / github.com/NVIDIA/aistore / GetNamedStatsVal

Function GetNamedStatsVal

devtools/tutils/client.go:588–594  ·  view source on GitHub ↗
(ds *stats.DaemonStats, name string)

Source from the content-addressed store, hash-verified

586}
587
588func GetNamedStatsVal(ds *stats.DaemonStats, name string) int64 {
589 v, ok := ds.Tracker[name]
590 if !ok {
591 return 0
592 }
593 return v.Value
594}
595
596// FIXME: obsolete - remove and reimpl. the test that calls it
597func GetDaemonStats(t *testing.T, u string) (stats map[string]interface{}) {

Callers 3

TestLRUFunction · 0.92
propsStatsFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestLRUFunction · 0.74
propsStatsFunction · 0.74