intel_gpu

package
v0.0.0-...-c6ae6cd Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModule

func GetModule() common.Module

Types

type IntelGPU

type IntelGPU struct {
	Name        string
	Description string
	Slug        string
	// contains filtered or unexported fields
}

func (*IntelGPU) GetDescription

func (m *IntelGPU) GetDescription() string

func (*IntelGPU) GetLastRun

func (m *IntelGPU) GetLastRun() string

func (*IntelGPU) GetName

func (m *IntelGPU) GetName() string

func (*IntelGPU) GetRunInterval

func (m *IntelGPU) GetRunInterval() int64

func (*IntelGPU) GetRunIntervalOnBattery

func (m *IntelGPU) GetRunIntervalOnBattery() int64

func (*IntelGPU) GetSlug

func (m *IntelGPU) GetSlug() string

func (*IntelGPU) GetWaybarOutput

func (m *IntelGPU) GetWaybarOutput() (*common.WaybarOutput, error)

func (*IntelGPU) IsEnabled

func (m *IntelGPU) IsEnabled() bool

func (*IntelGPU) Run

func (m *IntelGPU) Run() error

func (*IntelGPU) RunCommand

func (m *IntelGPU) RunCommand(name string, args []string) error

func (*IntelGPU) SaveLastRun

func (m *IntelGPU) SaveLastRun()

func (*IntelGPU) SuspendOnBattery

func (m *IntelGPU) SuspendOnBattery() bool

func (*IntelGPU) WriteOutput

func (m *IntelGPU) WriteOutput() error

type Output

type Output struct {
	Period struct {
		Duration float64 `json:"duration"`
		Unit     string  `json:"unit"`
	} `json:"period"`
	Frequency struct {
		Requested float64 `json:"requested"`
		Actual    float64 `json:"actual"`
		Unit      string  `json:"unit"`
	} `json:"frequency"`
	Interrupts struct {
		Count float64 `json:"count"`
		Unit  string  `json:"unit"`
	} `json:"interrupts"`
	Rc6 struct {
		Value float64 `json:"value"`
		Unit  string  `json:"unit"`
	} `json:"rc6"`
	Power struct {
		Value float64 `json:"value"`
		Unit  string  `json:"unit"`
	} `json:"power"`
	ImcBandwidth struct {
		Reads  float64 `json:"reads"`
		Writes float64 `json:"writes"`
		Unit   string  `json:"unit"`
	} `json:"imc-bandwidth"`
	Engines struct {
		Render3D0 struct {
			Busy float64 `json:"busy"`
			Sema float64 `json:"sema"`
			Wait float64 `json:"wait"`
			Unit string  `json:"unit"`
		} `json:"Render/3D/0"`
		Blitter0 struct {
			Busy float64 `json:"busy"`
			Sema float64 `json:"sema"`
			Wait float64 `json:"wait"`
			Unit string  `json:"unit"`
		} `json:"Blitter/0"`
		Video0 struct {
			Busy float64 `json:"busy"`
			Sema float64 `json:"sema"`
			Wait float64 `json:"wait"`
			Unit string  `json:"unit"`
		} `json:"Video/0"`
		Video1 struct {
			Busy float64 `json:"busy"`
			Sema float64 `json:"sema"`
			Wait float64 `json:"wait"`
			Unit string  `json:"unit"`
		} `json:"Video/1"`
		Videoenhance0 struct {
			Busy float64 `json:"busy"`
			Sema float64 `json:"sema"`
			Wait float64 `json:"wait"`
			Unit string  `json:"unit"`
		} `json:"VideoEnhance/0"`
	} `json:"engines"`
}

Jump to

Keyboard shortcuts

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