Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCoresInfo ¶
func GetCoresInfo(ci *CpuInfo)
func GetGlobalInfo ¶
func GetGlobalInfo(ci *CpuInfo)
func GetModelName ¶
func GetModelName(ci *CpuInfo)
Types ¶
type CpuInfo ¶
type CpuInfo struct { CoreNum int OnlineCore string Arch string CpuOpMode string ByteOrder string ThreadPerCore int CorePerSocket int Socket int NumaNodeNum int VendorId string CpuFamily string ModelName string Freq string HypervisorVendor string Virtualization string L1dCache string L1iCache string L2Cache string L3Cache string NumaNodes []NumaNode Cores []Core }
func GetCpuInfo ¶
func GetCpuInfo() CpuInfo
Click to show internal directories.
Click to hide internal directories.