MCPcopy Create free account
hub / github.com/containerd/cgroups / Stat

Method Stat

cgroup2/manager.go:580–582  ·  view source on GitHub ↗

Stat returns all cgroup stats. This is equivalent to calling StatFiltered(StatAll).

()

Source from the content-addressed store, hash-verified

578// Stat returns all cgroup stats.
579// This is equivalent to calling StatFiltered(StatAll).
580func (c *Manager) Stat() (*stats.Metrics, error) {
581 return c.StatFiltered(StatAll)
582}
583
584// StatFiltered returns cgroup stats for the specified controllers.
585func (c *Manager) StatFiltered(mask StatMask) (*stats.Metrics, error) {

Callers 4

TestCgroupv2PSIStatsFunction · 0.95
BenchmarkStatFunction · 0.95
TestCgroupv2HugetlbStatsFunction · 0.95
TestCgroupv2MemoryStatsFunction · 0.95

Calls 1

StatFilteredMethod · 0.95

Tested by 4

TestCgroupv2PSIStatsFunction · 0.76
BenchmarkStatFunction · 0.76
TestCgroupv2HugetlbStatsFunction · 0.76
TestCgroupv2MemoryStatsFunction · 0.76