intelgputop

package
v0.0.0-...-98b453b Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Busy float64 `json:"busy"`
	Sema float64 `json:"sema"`
	Wait float64 `json:"wait"`
	Unit string  `json:"unit"`
}

type Frequency

type Frequency struct {
	Requested float64 `json:"requested"`
	Actual    float64 `json:"actual"`
	Unit      string  `json:"unit"`
}

type GPUTop

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

func New

func New(r prometheus.Registerer) (*GPUTop, error)

func (*GPUTop) Name

func (g *GPUTop) Name() string

func (*GPUTop) Run

func (g *GPUTop) Run() error

func (*GPUTop) WithLogger

func (g *GPUTop) WithLogger(l kitlog.Logger) *GPUTop

type GPUTopData

type GPUTopData struct {
	Period     Period             `json:"period"`
	Frequency  Frequency          `json:"frequency"`
	Interrupts Interrupts         `json:"interrupts"`
	Rc6        Rc6                `json:"rc6"`
	Power      Power              `json:"power"`
	Engines    map[string]*Engine `json:"engines"`
}

type Interrupts

type Interrupts struct {
	Count float64 `json:"count"`
	Unit  string  `json:"unit"`
}

type Period

type Period struct {
	Duration float64 `json:"duration"`
	Unit     string  `json:"unit"`
}

type Power

type Power struct {
	Value float64 `json:"value"`
	Unit  string  `json:"unit"`
}

type Rc6

type Rc6 struct {
	Value float64 `json:"value"`
	Unit  string  `json:"unit"`
}

Jump to

Keyboard shortcuts

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