Discover Packages
github.com/zhufuyi/sponge
pkg
stat
cpu
package
Version:
v1.3.18
Opens a new window with list of versions in this module.
Published: Mar 11, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CPUInfo struct {
ModelName string `json:"modelName"`
Cores int32 `json:"cores"`
Frequency float64 `json:"frequency"`
}
CPUInfo cpu information
type Process struct {
UsagePercent float64 `json:"usage_percent"`
VMS uint64 `json:"vms"`
}
Process information
GetProcess get current process info
type System struct {
UsagePercent float64 `json:"usage_percent"`
CPUInfo []CPUInfo `json:"cpu_info"`
}
System cpu information
GetSystemCPU get system cpu info
Source Files
¶
Click to show internal directories.
Click to hide internal directories.