package load
import "github.com/shirou/gopsutil/v4/load"
SPDX-License-Identifier: BSD-3-Clause
Index ¶
- type AvgStat
- func Avg() (*AvgStat, error)
- func AvgWithContext(ctx context.Context) (*AvgStat, error)
- func (l AvgStat) String() string
- type MiscStat
Types ¶
type AvgStat ¶
type AvgStat struct { Load1 float64 `json:"load1"` Load5 float64 `json:"load5"` Load15 float64 `json:"load15"` }
func Avg ¶
func AvgWithContext ¶
func (AvgStat) String ¶
type MiscStat ¶
type MiscStat struct { ProcsTotal int `json:"procsTotal"` ProcsCreated int `json:"procsCreated"` ProcsRunning int `json:"procsRunning"` ProcsBlocked int `json:"procsBlocked"` Ctxt int `json:"ctxt"` }
func Misc ¶
Misc returns miscellaneous host-wide statistics. Note: the name should be changed near future.
func MiscWithContext ¶
func (MiscStat) String ¶
Source Files ¶
- Version
- v4.25.2 (latest)
- Published
- Feb 25, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 days ago –
Tools for package owners.