beater

package
v0.0.0-...-0a96701 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of nvidiabeat.

func RunDevice

func RunDevice(b *beat.Beat, period time.Duration, channel chan beat.Event, done chan struct{}) error

func RunProcess

func RunProcess(b *beat.Beat, period time.Duration, channel chan beat.Event, done chan struct{}) error

func RunSystem

func RunSystem(b *beat.Beat, period time.Duration, channel chan beat.Event, done chan struct{}) error

Types

type Nvidiabeat

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

Nvidiabeat configuration.

func (*Nvidiabeat) Run

func (bt *Nvidiabeat) Run(b *beat.Beat) error

Run starts nvidiabeat.

func (*Nvidiabeat) Stop

func (bt *Nvidiabeat) Stop()

Stop stops nvidiabeat.

type ProcessType

type ProcessType int
const (
	ProcessTypeGraphics ProcessType = 1
	ProcessTypeCompute  ProcessType = 2
	ProcessTypeBoth     ProcessType = 3
	ProcessTypeUnknown  ProcessType = -1
)

func (ProcessType) String

func (pt ProcessType) String() string

Jump to

Keyboard shortcuts

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