sys

package
v0.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

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.

func (*UsageStatser) Stats

func (sys *UsageStatser) Stats() any

Stats returns Stats.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL