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 ¶
This section is empty.
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.