Versions in this module Expand all Collapse all v0 v0.1.1 Nov 4, 2024 v0.1.0 Nov 4, 2024 Changes in this version + type CPUDetails map[int]CPUInfo + func (d CPUDetails) CPUs() cpuset.CPUSet + func (d CPUDetails) CPUsInCores(ids ...int) cpuset.CPUSet + func (d CPUDetails) CPUsInNUMANodes(ids ...int) cpuset.CPUSet + func (d CPUDetails) CPUsInSockets(ids ...int) cpuset.CPUSet + func (d CPUDetails) CPUsInUncoreCaches(ids ...int) cpuset.CPUSet + func (d CPUDetails) Cores() cpuset.CPUSet + func (d CPUDetails) CoresInNUMANodes(ids ...int) cpuset.CPUSet + func (d CPUDetails) CoresInSockets(ids ...int) cpuset.CPUSet + func (d CPUDetails) CoresNeededInUncoreCache(numCoresNeeded int, ids ...int) cpuset.CPUSet + func (d CPUDetails) KeepOnly(cpus cpuset.CPUSet) CPUDetails + func (d CPUDetails) NUMANodes() cpuset.CPUSet + func (d CPUDetails) NUMANodesInSockets(ids ...int) cpuset.CPUSet + func (d CPUDetails) Sockets() cpuset.CPUSet + func (d CPUDetails) SocketsInNUMANodes(ids ...int) cpuset.CPUSet + func (d CPUDetails) UncoreCaches() cpuset.CPUSet + func (d CPUDetails) UncoreInNUMANodes(ids ...int) cpuset.CPUSet + type CPUInfo struct + CoreID int + NUMANodeID int + SocketID int + UncoreCacheID int + type CPUTopology struct + CPUDetails CPUDetails + NumCPUs int + NumCores int + NumNUMANodes int + NumSockets int + NumUncoreCache int + func Discover(machineInfo *cadvisorapi.MachineInfo) (*CPUTopology, error) + func (topo *CPUTopology) CPUCoreID(cpu int) (int, error) + func (topo *CPUTopology) CPUNUMANodeID(cpu int) (int, error) + func (topo *CPUTopology) CPUSocketID(cpu int) (int, error) + func (topo *CPUTopology) CPUsPerCore() int + func (topo *CPUTopology) CPUsPerSocket() int + func (topo *CPUTopology) CPUsPerUncore() int + type NUMANodeInfo map[int]cpuset.CPUSet