Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAbsEnergyFromPlatform ¶ added in v0.5.4
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.