Documentation
¶
Index ¶
- func GetModule() common.Module
- type IntelGPU
- func (m *IntelGPU) GetDescription() string
- func (m *IntelGPU) GetLastRun() string
- func (m *IntelGPU) GetName() string
- func (m *IntelGPU) GetRunInterval() int64
- func (m *IntelGPU) GetRunIntervalOnBattery() int64
- func (m *IntelGPU) GetSlug() string
- func (m *IntelGPU) GetWaybarOutput() (*common.WaybarOutput, error)
- func (m *IntelGPU) IsEnabled() bool
- func (m *IntelGPU) Run() error
- func (m *IntelGPU) RunCommand(name string, args []string) error
- func (m *IntelGPU) SaveLastRun()
- func (m *IntelGPU) SuspendOnBattery() bool
- func (m *IntelGPU) WriteOutput() error
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IntelGPU ¶
type IntelGPU struct { Name string Description string Slug string // contains filtered or unexported fields }
func (*IntelGPU) GetDescription ¶
func (*IntelGPU) GetLastRun ¶
func (*IntelGPU) GetRunInterval ¶
func (*IntelGPU) GetRunIntervalOnBattery ¶
func (*IntelGPU) GetWaybarOutput ¶
func (m *IntelGPU) GetWaybarOutput() (*common.WaybarOutput, error)
func (*IntelGPU) SaveLastRun ¶
func (m *IntelGPU) SaveLastRun()
func (*IntelGPU) SuspendOnBattery ¶
func (*IntelGPU) WriteOutput ¶
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"` }
Click to show internal directories.
Click to hide internal directories.