Help us shape the future of Go! Take the 2026 Go Developer Survey

memory

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mem

type Mem struct {
	VirtMem *mem.VirtualMemoryStat
	// MemUsedPercentage      float64 // already in VirtMem
	MemAvailablePercentage float64

	SwapInfo *mem.SwapMemoryStat
}

func LoadMemStat

func LoadMemStat() (m *Mem, err error)

type MemConfig

type MemConfig struct {
	MemAvailable           thresholds.Thresholds
	MemUsed                thresholds.Thresholds
	MemFree                thresholds.Thresholds
	MemAvailablePercentage thresholds.Thresholds
	MemUsedPercentage      thresholds.Thresholds
	MemFreePercentage      thresholds.Thresholds

	SwapUsed           thresholds.Thresholds
	SwapFree           thresholds.Thresholds
	SwapUsedPercentage thresholds.Thresholds
	SwapFreePercentage thresholds.Thresholds

	Verbose              bool
	PercentageInPerfdata bool
}

Jump to

Keyboard shortcuts

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