Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CPUInfoStat ¶
type CPUInfoStat struct { CPU int32 `json:"cpu"` VendorID string `json:"vendor_id"` Family string `json:"family"` Model string `json:"model"` Stepping int32 `json:"stepping"` PhysicalID string `json:"physical_id"` CoreID string `json:"core_id"` Cores int32 `json:"cores"` ModelName string `json:"model_name"` Mhz float64 `json:"mhz"` CacheSize int32 `json:"cache_size"` Flags []string `json:"flags"` }
func CPUInfo ¶
func CPUInfo() ([]CPUInfoStat, error)
func (CPUInfoStat) String ¶
func (c CPUInfoStat) String() string
type CPUTimesStat ¶
type CPUTimesStat struct { CPU string `json:"cpu"` User float32 `json:"user"` System float32 `json:"system"` Idle float32 `json:"idle"` Nice float32 `json:"nice"` Iowait float32 `json:"iowait"` Irq float32 `json:"irq"` Softirq float32 `json:"softirq"` Steal float32 `json:"steal"` Guest float32 `json:"guest"` GuestNice float32 `json:"guest_nice"` Stolen float32 `json:"stolen"` }
func CPUTimes ¶
func CPUTimes(percpu bool) ([]CPUTimesStat, error)
func (CPUTimesStat) String ¶
func (c CPUTimesStat) String() string
Click to show internal directories.
Click to hide internal directories.