platform

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAbsEnergyFromPlatform added in v0.5.4

func GetAbsEnergyFromPlatform() (map[string]float64, error)

GetAbsEnergyFromPlatform returns the absolute energy, which is the sum of Idle + Dynamic energy.

func GetPowerSource added in v0.5.2

func GetPowerSource() string

func InitPowerImpl

func InitPowerImpl()

func IsSystemCollectionSupported

func IsSystemCollectionSupported() bool

func SetIsSystemCollectionSupported added in v0.5.4

func SetIsSystemCollectionSupported(enable bool)

SetIsSystemCollectionSupported is used to enable or disable the system power collection. This is used for testing purpose or to enable power estimation in system that has real-time power metrics.

func StopPower

func StopPower()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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