MCPcopy Create free account
hub / github.com/Mirantis/cri-dockerd / getStats

Method getStats

core/stats.go:129–136  ·  view source on GitHub ↗
(containerID string)

Source from the content-addressed store, hash-verified

127}
128
129func (c *containerStatsCache) getStats(containerID string) *cstats {
130 c.RLock()
131 defer c.RUnlock()
132 if _, exist := c.stats[containerID]; !exist {
133 return nil
134 }
135 return c.stats[containerID]
136}
137
138func (ds *dockerService) startStatsCollection() {
139 c := ds.containerStatsCache

Callers 1

getContainerStatsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected