heap

package
v1.7.1-0...-29a0ac7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heap

type Heap struct {
	Errors chan error
	// contains filtered or unexported fields
}

Heap will check every checkEvery for memory used (allocated minus free) to reach or exceed the threshold and take a memory profile to the path directory, but no more often than every minTimeDiff seconds any errors will be sent to the errors channel

func New

func New(path string, threshold, minTimeDiff int, checkEvery time.Duration, errors chan error) (*Heap, error)

New creates a new Heap trigger. use a nil channel if you don't care about any errors

func (Heap) Run

func (heap Heap) Run()

Jump to

Keyboard shortcuts

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