package
Version:
v1.4.1
Opens a new window with list of versions in this module.
Published: Nov 16, 2022
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CPUInfo struct {
ModelName string `json:"modelName"`
Cores int32 `json:"cores"`
Frequency float64 `json:"frequency"`
}
CPUInfo cpu info
type Process struct {
UsagePercent float64 `json:"usage_percent"`
VMS uint64 `json:"vms"`
}
Process 进程的cpu使用率
GetProcess get current process info
type System struct {
UsagePercent float64 `json:"usage_percent"`
CPUInfo []CPUInfo `json:"cpu_info"`
}
System 系统CPU信息
GetSystemCPU get system cpu info
Source Files
¶
Click to show internal directories.
Click to hide internal directories.