Documentation
¶
Index ¶
Constants ¶
View Source
const ( CommandSetClockRange api.CommandType = "gpu_clock_range" CommandSetPowerCap api.CommandType = "gpu_power_cap" )
View Source
const (
CategoryFast api.MetricCategory = "gpu_fast"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClockRangeCommand ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func (*Collector) CollectFast ¶
func (g *Collector) CollectFast() (*FastMetrics, error)
func (*Collector) StaticInfo ¶
func (g *Collector) StaticInfo() []StaticInfo
type CollectorSpec ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(collector *Collector) *Controller
func (*Controller) SetClockRange ¶
func (c *Controller) SetClockRange(gpuIndex int, smMinMHz, smMaxMHz, memMinMHz, memMaxMHz uint32) error
func (*Controller) SetPowerCap ¶
func (c *Controller) SetPowerCap(gpuIndex int, milliWatt uint32) error
type ControllerSpec ¶
type ControllerSpec struct {
Type string
}
type DeviceFastMetrics ¶
type DeviceFastMetrics struct {
Index int
UtilizationGPU uint32
UtilizationMem uint32
MemoryUsedBytes uint64
TemperatureC uint32
PowerUsageMilliW uint32
GraphicsClockMHz uint32
MemoryClockMHz uint32
SMClockMinMHz uint32
SMClockMaxMHz uint32
MemClockMinMHz uint32
MemClockMaxMHz uint32
PowerLimitMilliW uint32
SampledAtNano int64
}
type FastMetrics ¶
type FastMetrics struct {
Devices []DeviceFastMetrics
}
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) CollectorEntries ¶
func (m *Module) CollectorEntries() []modules.CollectorEntry
func (*Module) ControllerEntries ¶
func (m *Module) ControllerEntries() []modules.ControllerEntry
func (*Module) Registration ¶
type PowerCapCommand ¶
type Registration ¶
type Registration struct {
Static []StaticInfo
Collectors []CollectorSpec
Controllers []ControllerSpec
}
Click to show internal directories.
Click to hide internal directories.