sysinfo

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Spawn

func Spawn(mgr process.IManager, interval int) (*process.Process, error)

Types

type SysInfo

type SysInfo struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewSysInfo

func NewSysInfo() *SysInfo

Create a new System Information instance.

func (*SysInfo) Allocated

func (si *SysInfo) Allocated() uint64

Return number of MiB currently allocated.

func (*SysInfo) GC

func (si *SysInfo) GC() uint32

Return the number of collections performed.

func (*SysInfo) GoRoutines

func (si *SysInfo) GoRoutines() int

Return the number of Go routines.

func (*SysInfo) Heap

func (si *SysInfo) Heap() uint64

Return number of MiB used by the heap.

func (*SysInfo) Hostname

func (si *SysInfo) Hostname() string

Return this system's hostname.

func (*SysInfo) RunTime

func (si *SysInfo) RunTime() time.Duration

Return the time running.

func (*SysInfo) System

func (si *SysInfo) System() uint64

Return number of MiB allocated from the system.

func (*SysInfo) UpdateStats

func (si *SysInfo) UpdateStats()

Update runtime statistics.

type SysInfoProc

type SysInfoProc struct {
	// contains filtered or unexported fields
}

func NewSysInfoProc

func NewSysInfoProc() *SysInfoProc

func (*SysInfoProc) Action

func (sip *SysInfoProc) Action(state **process.State)

Jump to

Keyboard shortcuts

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