rapl

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RAPLBasePath = "/sys/class/powercap"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RAPLDomain

type RAPLDomain struct {
	Name           string
	Path           string
	Enabled        bool
	MaxEnergyRange float64
	LastEnergy     float64
	LastReadTime   time.Time
}

type RAPLReader

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

func NewRAPLReader

func NewRAPLReader() *RAPLReader

func (*RAPLReader) Close

func (r *RAPLReader) Close() error

func (*RAPLReader) GetMetrics

func (r *RAPLReader) GetMetrics() (*types.RAPLMetrics, error)

func (*RAPLReader) LogMetrics

func (r *RAPLReader) LogMetrics(metrics *types.RAPLMetrics)

Jump to

Keyboard shortcuts

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