Class CpuDetectionHelper
- Namespace
- Zyl.VectorTraits.Impl.Util
- Assembly
- VectorTraits.dll
Cpu detection helper (CPU检测工具).
public class CpuDetectionHelper
- Inheritance
-
CpuDetectionHelper
- Inherited Members
Properties
- CpuDetectionCommand
Command used for CPU detection (CPU检测所用命令). e.g.
wmic
...
- CpuDetectionException
Latest exception during CPU detection (CPU检测时的最新异常).
- CpuDetectionResult
The raw return value of the CPU detection. It is related to CpuDetectionCommand (CPU检测的原始返回值. 它与 CpuDetectionCommand 有关.).
- CpuFlags
CPU feature Flags (CPU特征标志).
- CpuModelName
CPU model name (CPU型号名).
- Instance
The instance (实例).
Methods
- IsWindowsPath()
Get DirectorySeparatorChar is Windows format.
- Refresh()
Refresh information (刷新信息).
- RefreshSelf()
Refresh self (刷新自己).
- RefreshSelf_Lscpu(IList<string>, ref string)
Refresh self - lscpu. It use for Linux system.
- RefreshSelf_ProcCpuinfo(IList<string>, ref string)
Refresh self -
/proc/cpuinfo
. It use for Linux system.
- RefreshSelf_Sysctl(IList<string>, ref string)
Refresh self - sysctl. It use for Mac OS system.
- RefreshSelf_Wmic(IList<string>, ref string)
Refresh self - wmic. It use for Windows system.