Versions in this module Expand all Collapse all v0 v0.1.3 Jan 17, 2026 v0.1.1 Jan 17, 2026 Changes in this version + var ErrNoCFSLimit = errors.New("no CPU CFS limit") + func ParseUintList(val string) (map[int]bool, error) + func ReadStat(stat *Stat) + type CPU interface + Info func() Info + Usage func() (u uint64, e error) + func NewPsutilCPU(interval time.Duration) (CPU, error) + type CgroupCPU struct + func NewCgroupCPU() (*CgroupCPU, error) + func (c *CgroupCPU) Info() Info + func (c *CgroupCPU) Usage() (uint64, error) + type Info struct + Cores int + Frequency uint64 + Quota float64 + func GetInfo() Info + type PsutilCPU struct + func (pc *PsutilCPU) Info() Info + func (pc *PsutilCPU) Usage() (uint64, error) + type Stat struct + Usage uint64