Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintStats ¶
func PrintStats(logger *zap.SugaredLogger)
Types ¶
type MachineMemoryStats ¶ added in v3.0.912
type MachineStats ¶
type MachineStats struct { CpuUsagePercent float64 `json:"cpuUsagePercent"` CpuUsagePercentError error `json:"cpuUsagePercentError,omitempty"` DiskPath string `json:"diskPath,omitempty"` DiskUsagePercent float64 `json:"diskUsagePercent,omitempty"` DiskUsagePercentError error `json:"diskUsagePercentError,omitempty"` // ProcessCount 进程数 ProcessCount int `json:"processCount,omitempty"` ProcessCountError error `json:"processCountError,omitempty"` // ProcessThreadCount 进程数(包括线程数) ProcessThreadCount int `json:"processThreadCount,omitempty"` ProcessThreadCountError error `json:"processThreadCountError,omitempty"` MaxProcessThreadCountByUser int `json:"maxProcessThreadCountByUser,omitempty"` MaxProcessThreadCountByUserError string `json:"maxProcessThreadCountByUserError,omitempty"` PidMax int `json:"pidMax,omitempty"` PidMaxError string `json:"pidMaxError,omitempty"` ThreadsMax int `json:"threadsMax,omitempty"` ThreadsMaxError string `json:"threadsMaxError,omitempty"` MaxMapCount int `json:"maxMapCount,omitempty"` MaxMapCountError string `json:"maxMapCountError,omitempty"` Memory *MachineMemoryStats `json:"memory"` }
type ProgramMemoryStats ¶ added in v3.0.912
type ProgramStats ¶
type ProgramStats struct { PID int `json:"pid"` GoroutineCount int `json:"goroutineCount"` CpuUsagePercent float64 `json:"cpuUsagePercent"` CpuUsagePercentError error `json:"cpuUsagePercentError,omitempty"` Memory *ProgramMemoryStats `json:"memory"` }
type Stats ¶
type Stats struct { Program *ProgramStats `json:"program"` Machine *MachineStats `json:"machine"` }
Click to show internal directories.
Click to hide internal directories.