memory

package
v0.0.0-...-efff542 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Load

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

Load represents a memory load.

func NewLoad

func NewLoad(l *log.Logger) *Load

NewLoad returns a configured memory load.

func (*Load) Start

func (l *Load) Start()

Start starts up the load goroutine.

func (*Load) Stop

func (l *Load) Stop()

Stop signals the load goroutine to stop and waits for it to return.

func (*Load) Update

func (l *Load) Update(size int64)

Update updates the allocated memory size.

type Monitor

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

Monitor represents a memory load monitor.

func NewMonitor

func NewMonitor(l *log.Logger) *Monitor

NewMonitor returns a configured memory load monitor.

func (*Monitor) Start

func (m *Monitor) Start()

Start starts up the monitoring goroutine.

func (*Monitor) Stop

func (m *Monitor) Stop()

Stop signals the monitoring goroutine to stop and waits for it to return.

func (*Monitor) Usage

func (m *Monitor) Usage() interface{}

Usage returns the latest set of memory stats.

Jump to

Keyboard shortcuts

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