cpudata

package module
v0.0.0-...-236bfc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUData

type CPUData struct {
	// contains filtered or unexported fields
}

CPUData - CPU information data

func New

func New() (*CPUData, error)

Open - Open the CPU information

func (*CPUData) CoreMapItem

func (cd *CPUData) CoreMapItem(key uint16) ([]uint16, bool)

func (*CPUData) Cores

func (cd *CPUData) Cores() []uint16

func (*CPUData) CpuInfo

func (cd *CPUData) CpuInfo(lcore uint16) cpu.InfoStat

func (*CPUData) CpuInfoList

func (cd *CPUData) CpuInfoList() []cpu.InfoStat

func (*CPUData) NumHyperThreads

func (cd *CPUData) NumHyperThreads() int16

func (*CPUData) NumLogicalCores

func (cd *CPUData) NumLogicalCores() int16

func (*CPUData) NumPhysicalCores

func (cd *CPUData) NumPhysicalCores() int16

func (*CPUData) NumSockets

func (cd *CPUData) NumSockets() int16

func (*CPUData) Sockets

func (cd *CPUData) Sockets() []uint16

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL