package cpu
import "github.com/shirou/gopsutil/cpu"
Index ¶
Functions ¶
func Counts ¶
Types ¶
type InfoStat ¶
type InfoStat struct { CPU int32 `json:"cpu"` VendorID string `json:"vendorId"` Family string `json:"family"` Model string `json:"model"` Stepping int32 `json:"stepping"` PhysicalID string `json:"physicalId"` CoreID string `json:"coreId"` Cores int32 `json:"cores"` ModelName string `json:"modelName"` Mhz float64 `json:"mhz"` CacheSize int32 `json:"cacheSize"` Flags []string `json:"flags"` }
func (InfoStat) String ¶
type TimesStat ¶
type TimesStat struct { CPU string `json:"cpu"` User float64 `json:"user"` System float64 `json:"system"` Idle float64 `json:"idle"` Nice float64 `json:"nice"` Iowait float64 `json:"iowait"` Irq float64 `json:"irq"` Softirq float64 `json:"softirq"` Steal float64 `json:"steal"` Guest float64 `json:"guest"` GuestNice float64 `json:"guestNice"` Stolen float64 `json:"stolen"` }
func (TimesStat) String ¶
func (TimesStat) Total ¶
Total returns the total number of seconds in a CPUTimesStat
Source Files ¶
- Version
- v2.0.0+incompatible
- Published
- Apr 7, 2016
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 10 hours ago –
Tools for package owners.