mem

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-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 Stat

type Stat struct {
	// Total memory in bytes
	Total uint64
	// Available memory in bytes
	Available uint64
	// Available memory in percentage
	AvailablePercent float64
	// Used memory in bytes
	Used uint64
	// Used memory in percentage
	UsedPercent float64
}

Stat represents memory statistics (cgroup aware)

func Get

func Get() (*Stat, error)

Get current memory statistics

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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