Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintStats ¶ added in v2.1.38
Types ¶
type MachineStats ¶
type MachineStats struct { // ProcessCount 进程数 ProcessCount int `json:"processCount,omitempty"` ProcessCountError error `json:"processCountError,omitempty"` // ProcessThreadCount 进程数(包括线程数) ProcessThreadCount int `json:"processThreadCount,omitempty"` ProcessThreadCountError error `json:"processThreadCountError,omitempty"` MemoryStatsError error `json:"memoryStatsError,omitempty"` Total string `json:"total,omitempty"` Available string `json:"available,omitempty"` Used string `json:"used,omitempty"` UsedPercent float64 `json:"usedPercent,omitempty"` Free string `json:"free,omitempty"` }
type ProgramStats ¶
type Stats ¶
type Stats struct { Cpu *CpuStats `json:"cpu"` Program *ProgramStats `json:"program"` Machine *MachineStats `json:"machine"` }
Click to show internal directories.
Click to hide internal directories.