cpu

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUPlugin

type CPUPlugin struct {
	api.Plugin
	// contains filtered or unexported fields
}

func (*CPUPlugin) Close

func (c *CPUPlugin) Close() error

func (*CPUPlugin) Interval

func (c *CPUPlugin) Interval() time.Duration

func (*CPUPlugin) Open

func (c *CPUPlugin) Open() error

func (*CPUPlugin) Pause

func (c *CPUPlugin) Pause() error

func (*CPUPlugin) SampleNow

func (p *CPUPlugin) SampleNow() (err error)

SampleNow is the entry point for the example CPU sampler

func (*CPUPlugin) SetInterval

func (c *CPUPlugin) SetInterval(i time.Duration)

func (*CPUPlugin) Start

func (c *CPUPlugin) Start() error

func (*CPUPlugin) Stop

func (c *CPUPlugin) Stop() error

Jump to

Keyboard shortcuts

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