kysdk.Cpuinfo(3)

NAME
kysdk.Cpuinfo - 获取cpu信息 主要用来获取cpu的架构、制造厂商、型号、额定主频、核心数量、虚拟化支持和线程数信息

SYNOPSIS

Inherits kysdk.Base.

  Public Member Functions
def __init__ (self)
def getCpuArch (self)
获取cpu架构
def getCpuVendor (self)
获取cpu制造厂商
def getCpuModel (self)
获取cpu型号
def getCpuFreqMHz (self)
获取cpu额定主频
def getCpuCorenums (self)
获取cpu核心数量
def getCpuVirt (self)
获取cpu对虚拟化的支持
def getCpuProcess (self)
获取cpu线程数

  Additional Inherited Members

Detailed Description

获取cpu信息 主要用来获取cpu的架构、制造厂商、型号、额定主频、核心数量、虚拟化支持和线程数信息

Member Function Documentation

  def kysdk.Cpuinfo.getCpuArch ( self)

获取cpu架构

Returns
    架构信息，如'x86_64'

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Cpuinfo.getCpuCorenums ( self)

获取cpu核心数量

Returns
    所有可用的CPU核心数量

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Cpuinfo.getCpuFreqMHz ( self)

获取cpu额定主频

Returns
    额定主频赫兹数，如“1794.742”

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Cpuinfo.getCpuModel ( self)

获取cpu型号

Returns
    CPU型号名称，如“Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz”

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Cpuinfo.getCpuProcess ( self)

获取cpu线程数

Returns
    cpu支持的线程数

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Cpuinfo.getCpuVendor ( self)

获取cpu制造厂商

Returns
    制造厂商，如“GenuineIntel”

References kysdk.SessionBase.interface, and kysdk.Base.interface.

  def kysdk.Cpuinfo.getCpuVirt ( self)

获取cpu对虚拟化的支持

Returns
    若CPU支持虚拟化，则返回虚拟化技术，如“vmx”；若不支持，返回NULL

References kysdk.SessionBase.interface, and kysdk.Base.interface.

Author

Generated automatically by Doxygen for kysdk.py from the source code.