utils

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func GetCoreRatio(isIdlePower bool, inCoreRatio float64) float64

GetCoreRatio returns core ratio to apply only with idle power

func GetModelNameFromURL added in v0.7.12

func GetModelNameFromURL(url string) string

func GetPlatformPower added in v0.7.11

func GetPlatformPower(powers []float64, coreRatio float64) []uint64

GetPlatformPower returns powerInMilliJoule

Types

This section is empty.

Jump to

Keyboard shortcuts

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