devicewatcher

package
v0.0.0-...-16950fd Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DCGM_ST_NOT_CONFIGURED = "Setting not configured"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceWatcher

type DeviceWatcher struct{}

func NewDeviceWatcher

func NewDeviceWatcher() *DeviceWatcher

func (*DeviceWatcher) GetDeviceFields

func (d *DeviceWatcher) GetDeviceFields(counters []counters.Counter, entityType dcgm.Field_Entity_Group) []dcgm.Short

func (*DeviceWatcher) WatchDeviceFields

func (d *DeviceWatcher) WatchDeviceFields(
	deviceFields []dcgm.Short, deviceInfo deviceinfo.Provider, updateFreqInUsec int64,
) ([]dcgm.GroupHandle, dcgm.FieldHandle, []func(), error)

type Watcher

type Watcher interface {
	GetDeviceFields([]counters.Counter, dcgm.Field_Entity_Group) []dcgm.Short
	WatchDeviceFields([]dcgm.Short, deviceinfo.Provider, int64) ([]dcgm.GroupHandle, dcgm.FieldHandle, []func(), error)
}

Jump to

Keyboard shortcuts

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