platform

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAbsEnergyFromPlatform

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

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

func GetSourceName

func GetSourceName() string

func InitPowerImpl

func InitPowerImpl()

func IsSystemCollectionSupported

func IsSystemCollectionSupported() bool

func SetIsSystemCollectionSupported

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