Documentation
¶
Overview ¶
Package sys provides functionality for gathering system metrics in an FTDC compliant API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetUsage ¶ added in v0.61.0
func NewNetUsage() (*netStatser, error)
NewNetUsage returns an object that can interpreted as an `ftdc.Statser`.
Types ¶
type UsageStatser ¶
type UsageStatser struct {
// contains filtered or unexported fields
}
UsageStatser can be used to get system metrics for a process.
func NewPidSysUsageStatser ¶
func NewPidSysUsageStatser(pid int) (*UsageStatser, error)
NewPidSysUsageStatser will return a `SysUsageStatser` for the given process id.
func NewSelfSysUsageStatser ¶
func NewSelfSysUsageStatser() (*UsageStatser, error)
NewSelfSysUsageStatser will return a `SysUsageStatser` for the current process.
Click to show internal directories.
Click to hide internal directories.