MCPcopy Create free account
hub / github.com/containers/common / readAcct

Function readAcct

pkg/cgroups/cpu.go:26–29  ·  view source on GitHub ↗
(ctr *CgroupControl, name string)

Source from the content-addressed store, hash-verified

24}
25
26func readAcct(ctr *CgroupControl, name string) (uint64, error) {
27 p := filepath.Join(ctr.getCgroupv1Path(CPUAcct), name)
28 return readFileAsUint64(p)
29}
30
31func readAcctList(ctr *CgroupControl, name string) ([]uint64, error) {
32 p := filepath.Join(ctr.getCgroupv1Path(CPUAcct), name)

Callers 1

StatMethod · 0.85

Calls 2

readFileAsUint64Function · 0.85
getCgroupv1PathMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…