mem

package
v0.0.0-...-d990f74 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2015 License: MIT Imports: 5 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 {
	Total       int64
	Free        int64
	Used        int64
	UsedPercent float64
}

func GetMem

func GetMem() (*Mem, error)

type Plugin

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

Plugin watches the memory usage of a machine.

func NewPlugin

func NewPlugin() (*Plugin, error)

NewPlugin creates a Plugin that watches the memory usage of a machine.

func (*Plugin) Name

func (p *Plugin) Name() string

Name of the plugin.

func (*Plugin) Snapshot

func (p *Plugin) Snapshot() (interface{}, error)

Snapshot returns a snapshot of the current memory usage.

Jump to

Keyboard shortcuts

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