memory

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2016 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	Unit string

	Total  int64
	Free   int64
	Cached int64

	Swap struct {
		Total int64
		Free  int64
		Used  int64
	}
}

https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-meminfo.html

Look to see how memory changes over time.

func New

func New() *Memory

type ProcessMemory

type ProcessMemory struct {
	Swap struct {
		Size     int64  `json:",omitempty"`
		SizeUnit string `json:",omitempty"`
	} `json:",omitempty"`
	// contains filtered or unexported fields
}

func NewProcess

func NewProcess(proc procfs.Proc) *ProcessMemory

Jump to

Keyboard shortcuts

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