Versions in this module Expand all Collapse all v1 v1.0.1 Jan 10, 2024 v1.0.0 Nov 28, 2023 Changes in this version + func CheckIfCPUBaseFrequencySupported(cpuModel int) error — linux/amd64 + func CheckIfCPUC1StateResidencySupported(cpuModel int) error — linux/amd64 + func CheckIfCPUC3StateResidencySupported(cpuModel int) error — linux/amd64 + func CheckIfCPUC6StateResidencySupported(cpuModel int) error — linux/amd64 + func CheckIfCPUC7StateResidencySupported(cpuModel int) error — linux/amd64 + func CheckIfCPUTemperatureSupported(cpuModel int) error — linux/amd64 + type MaxTurboFreq struct — linux/amd64 + ActiveCores uint32 + Secondary bool + Value uint64 + type MetricNotSupportedError struct — linux/amd64 + func (e *MetricNotSupportedError) Error() string + type ModuleNotInitializedError struct — linux/amd64 + Name string + func (e *ModuleNotInitializedError) Error() string + type MultiError struct — linux/amd64 + func (e *MultiError) Error() string + type Option func(*powerBuilder) — linux/amd64 + func WithCoreFrequency(basePath ...string) Option + func WithExcludedCPUs(cpuIDs []int) Option + func WithIncludedCPUs(cpuIDs []int) Option + func WithLogger(l log.Logger) Option + func WithMsr() Option + func WithMsrTimeout(timeout time.Duration) Option + func WithPerf(jsonFile string) Option + func WithRapl(basePath ...string) Option + func WithUncoreFrequency(basePath ...string) Option + type PowerTelemetry struct — linux/amd64 + func New(opts ...Option) (*PowerTelemetry, error) + func (pt *PowerTelemetry) DeactivatePerfEvents() error + func (pt *PowerTelemetry) GetCPUBaseFrequency(packageID int) (uint64, error) + func (pt *PowerTelemetry) GetCPUBusyFrequencyMhz(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUC0StateResidency(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUC0SubstateC01Percent(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUC0SubstateC02Percent(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUC0SubstateC0WaitPercent(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUC1StateResidency(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUC3StateResidency(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUC6StateResidency(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUC7StateResidency(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUCoreID(cpuID int) (int, error) + func (pt *PowerTelemetry) GetCPUFrequency(cpuID int) (float64, error) + func (pt *PowerTelemetry) GetCPUPackageID(cpuID int) (int, error) + func (pt *PowerTelemetry) GetCPUTemperature(cpuID int) (uint64, error) + func (pt *PowerTelemetry) GetCurrentDramPowerConsumptionWatts(packageID int) (float64, error) + func (pt *PowerTelemetry) GetCurrentPackagePowerConsumptionWatts(packageID int) (float64, error) + func (pt *PowerTelemetry) GetCurrentUncoreFrequency(packageID, dieID int) (float64, error) + func (pt *PowerTelemetry) GetCustomizedUncoreFrequencyMax(packageID, dieID int) (float64, error) + func (pt *PowerTelemetry) GetCustomizedUncoreFrequencyMin(packageID, dieID int) (float64, error) + func (pt *PowerTelemetry) GetInitialUncoreFrequencyMax(packageID, dieID int) (float64, error) + func (pt *PowerTelemetry) GetInitialUncoreFrequencyMin(packageID, dieID int) (float64, error) + func (pt *PowerTelemetry) GetMaxTurboFreqList(packageID int) ([]MaxTurboFreq, error) + func (pt *PowerTelemetry) GetMsrCPUIDs() []int + func (pt *PowerTelemetry) GetPackageDieIDs(packageID int) ([]int, error) + func (pt *PowerTelemetry) GetPackageIDs() []int + func (pt *PowerTelemetry) GetPackageThermalDesignPowerWatts(packageID int) (float64, error) + func (pt *PowerTelemetry) GetPerfCPUIDs() []int + func (pt *PowerTelemetry) GetRaplPackageIDs() []int + func (pt *PowerTelemetry) IsFlagSupported(flag string) (bool, error) + func (pt *PowerTelemetry) ReadPerfEvents() error + func (pt *PowerTelemetry) UpdatePerCPUMetrics(cpuID int) error