Documentation
¶
Index ¶
- Constants
- func FillNodeComponentsPower(pkgPower, corePower, uncorePower, dramPower uint64) source.NodeComponentsEnergy
- func GetComponentPower(powers map[string][]float64, componentKey string, index int, coreRatio float64) uint64
- func GetCoreRatio(isIdlePower bool, inCoreRatio float64) float64
- func GetModelNameFromURL(url string) string
- func GetPlatformPower(powers []float64, coreRatio float64) []uint64
Constants ¶
View Source
const (
JouleMillijouleConversionFactor float64 = 1000
)
Variables ¶
This section is empty.
Functions ¶
func FillNodeComponentsPower ¶
func FillNodeComponentsPower(pkgPower, corePower, uncorePower, dramPower uint64) source.NodeComponentsEnergy
FillNodeComponentsPower fills missing component (pkg or core) power
func GetComponentPower ¶
func GetComponentPower(powers map[string][]float64, componentKey string, index int, coreRatio float64) uint64
GetComponentPower called by getPodComponentPowers to check if component key is present in powers response and fills with single 0
func GetCoreRatio ¶ added in v0.7.12
GetCoreRatio returns core ratio to apply only with idle power
func GetModelNameFromURL ¶ added in v0.7.12
func GetPlatformPower ¶ added in v0.7.11
GetPlatformPower returns powerInMilliJoule
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.