metrics

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerFn

type ConsumerFn = func([]Metrics)

type Metrics

type Metrics struct {
	Name              string `json:"name"`
	UtcWhen           uint64 `json:"utcWhen"`
	GpuUtilization    uint32 `json:"gpuUtilization"`
	MemoryUtilization uint32 `json:"memoryUtilization"`
	MemoryUsed        uint64 `json:"memoryUsed"`
	MemoryTotal       uint64 `json:"memoryTotal"`
	PowerUsage        uint32 `json:"powerUsage"`
	PowerLimit        uint32 `json:"powerLimit"`
	FanSpeed          uint32 `json:"fanSpeed"`
	TemperatureGpu    uint32 `json:"temperatureGpu"`
	TemperatureMemory uint32 `json:"temperatureMemory"`
	ClockCore         uint32 `json:"clockCore"`
	ClockMemory       uint32 `json:"clockMemory"`
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(gpus gpu.GpuSet, rendererWinPath string) *Provider

func (*Provider) AddConsumer

func (provider *Provider) AddConsumer(consumer ConsumerFn)

func (*Provider) Run

func (provider *Provider) Run(group task.TaskGroup) error

Jump to

Keyboard shortcuts

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