Versions in this module Expand all Collapse all v3 v3.23.3-jeff.1 Feb 7, 2023 v3.23.2 Feb 7, 2023 Changes in this version + const CPUser — darwin/amd64 + const ClocksPerSec — windows/amd64 + var ClocksPerSec = float64(100) — linux/amd64 + var ClocksPerSec = float64(128) — darwin/amd64 + func Counts(logical bool) (int, error) + func CountsWithContext(ctx context.Context, logical bool) (int, error) + func Percent(interval time.Duration, percpu bool) ([]float64, error) + func PercentWithContext(ctx context.Context, interval time.Duration, percpu bool) ([]float64, error) + type InfoStat struct + CPU int32 + CacheSize int32 + CoreID string + Cores int32 + Family string + Flags []string + Mhz float64 + Microcode string + Model string + ModelName string + PhysicalID string + Stepping int32 + VendorID string + func Info() ([]InfoStat, error) + func InfoWithContext(ctx context.Context) ([]InfoStat, error) + func (c InfoStat) String() string + type TimesStat struct + CPU string + Guest float64 + GuestNice float64 + Idle float64 + Iowait float64 + Irq float64 + Nice float64 + Softirq float64 + Steal float64 + System float64 + User float64 + func Times(percpu bool) ([]TimesStat, error) + func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, error) + func (c TimesStat) String() string + func (c TimesStat) Total() float64 Other modules containing this package github.com/jeffweiss/gopsutil