clock

package
v0.0.1-test1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SubSystem = "accelerator_nvidia_clock"

Variables

This section is empty.

Functions

func InitAveragers

func InitAveragers(db *sql.DB, tableName string)

func ReadHWSlowdown

func ReadHWSlowdown(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)

func ReadHWSlowdownPowerBrake

func ReadHWSlowdownPowerBrake(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)

func ReadHWSlowdownThermal

func ReadHWSlowdownThermal(ctx context.Context, since time.Time) (components_metrics_state.Metrics, error)

func Register

func Register(reg *prometheus.Registry, db *sql.DB, tableName string) error

func SetHWSlowdown

func SetHWSlowdown(ctx context.Context, gpuID string, b bool, currentTime time.Time) error

func SetHWSlowdownPowerBrake

func SetHWSlowdownPowerBrake(ctx context.Context, gpuID string, b bool, currentTime time.Time) error

func SetHWSlowdownThermal

func SetHWSlowdownThermal(ctx context.Context, gpuID string, b bool, currentTime time.Time) error

func SetLastUpdateUnixSeconds

func SetLastUpdateUnixSeconds(unixSeconds float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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