cpu

package
v0.0.0-...-cf91c28 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

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

CPU collector.

func New

func New(contains string, delay time.Duration) *CPU

New CPU collector.

func (*CPU) Collect

func (c *CPU) Collect(exit <-chan struct{}) (map[objfile.Location]float64, error)

Collect data.

type DelayTooShortError

type DelayTooShortError struct{}

DelayTooShortError when the delay is not long enough.

func (DelayTooShortError) Error

func (e DelayTooShortError) Error() string

Error string.

type NoLocationError

type NoLocationError struct{}

NoLocationError when no location can be found.

func (NoLocationError) Error

func (e NoLocationError) Error() string

Error string.

type UnexpectedValueLenError

type UnexpectedValueLenError struct{}

UnexpectedValueLenError when the value array does not have expected size.

func (UnexpectedValueLenError) Error

func (e UnexpectedValueLenError) Error() string

Error string.

Jump to

Keyboard shortcuts

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