Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CpuInfo ¶
type CpuInfo struct {
Count int `json:"count" yaml:"count"`
}
CpuInfo defines CPU information read from system
func NewCpuInfo ¶
func NewCpuInfo() *CpuInfo
type GoEnvInfo ¶
type GoEnvInfo struct { GOOS string `json:"goos" yaml:"goos"` GOArch string `json:"goArch" yaml:"goArch"` RoutinesCount int `json:"routinesCount" yaml:"routinesCount"` Version string `json:"version" yaml:"version"` }
GoEnvInfo defines go processor information
type MemInfo ¶
type MemInfo struct { MemUsedPercentage float64 `json:"memUsedPercentage" yaml:"memUsedPercentage"` MemUsedMb uint64 `json:"memUsedMb" yaml:"memUsedMb"` MemAllocByte uint64 `json:"memAllocByte" yaml:"memAllocByte"` SysAllocByte uint64 `json:"sysAllocByte" yaml:"sysAllocByte"` LastGcTimestamp string `json:"lastGcTimestamp" yaml:"lastGcTimestamp"` GcCount uint32 `json:"gcCountTotal" yaml:"gcCountTotal"` ForceGcCount uint32 `json:"forceGcCount" yaml:"forceGcCount"` }
MemInfo memory stats of current running process
type NetInfo ¶
type NetInfo struct {
NetInterface []*netInterface `json:"netInterface" yaml:"netInterface"`
}
NetInfo defines network interface information about local machine
func NewNetInfo ¶
func NewNetInfo() *NetInfo
Click to show internal directories.
Click to hide internal directories.