acpi

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACPI

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

Advanced Configuration and Power Interface (APCI) makes the system hardware sensor status information available to the operating system via hwmon in sysfs.

func NewACPIPowerMeter

func NewACPIPowerMeter() *ACPI

func (*ACPI) GetCPUCoreFrequency

func (a *ACPI) GetCPUCoreFrequency() map[int32]uint64

func (*ACPI) GetEnergyFromHost

func (a *ACPI) GetEnergyFromHost() (map[string]float64, error)

GetEnergyFromHost returns the accumulated energy consumption and reset the counter

func (*ACPI) IsPowerSupported

func (a *ACPI) IsPowerSupported() bool

func (*ACPI) Run

func (a *ACPI) Run(isEBPFEnabled bool)

func (*ACPI) Stop

func (a *ACPI) Stop()

Jump to

Keyboard shortcuts

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