diff --git a/pkg/model/process_energy.go b/pkg/model/process_energy.go index 876c1da674..c132be0545 100644 --- a/pkg/model/process_energy.go +++ b/pkg/model/process_energy.go @@ -180,7 +180,6 @@ func addSamplesToPowerModels(processesMetrics map[uint64]*stats.ProcessStats, no // addEstimatedEnergy estimates the idle power consumption func addEstimatedEnergy(processIDList []uint64, processesMetrics map[uint64]*stats.ProcessStats, isIdlePower bool) { - var err error var processGPUPower []uint64 var processPlatformPower []uint64 var processComponentsPower []source.NodeComponentsEnergy @@ -224,9 +223,6 @@ func addEstimatedEnergy(processIDList []uint64, processesMetrics map[uint64]*sta } else { processesMetrics[processID].EnergyUsage[config.DynEnergyInPkg].SetDeltaStat(utils.GenericSocketID, energy) } - if err != nil { - klog.V(5).Infoln(err) - } // add CORE power consumption energy = processComponentsPower[i].Core * config.SamplePeriodSec @@ -235,9 +231,6 @@ func addEstimatedEnergy(processIDList []uint64, processesMetrics map[uint64]*sta } else { processesMetrics[processID].EnergyUsage[config.DynEnergyInCore].SetDeltaStat(utils.GenericSocketID, energy) } - if err != nil { - klog.V(5).Infoln(err) - } // add DRAM power consumption energy = processComponentsPower[i].DRAM * config.SamplePeriodSec @@ -246,9 +239,6 @@ func addEstimatedEnergy(processIDList []uint64, processesMetrics map[uint64]*sta } else { processesMetrics[processID].EnergyUsage[config.DynEnergyInDRAM].SetDeltaStat(utils.GenericSocketID, energy) } - if err != nil { - klog.V(5).Infoln(err) - } // add Uncore power consumption energy = processComponentsPower[i].Uncore * config.SamplePeriodSec @@ -257,9 +247,6 @@ func addEstimatedEnergy(processIDList []uint64, processesMetrics map[uint64]*sta } else { processesMetrics[processID].EnergyUsage[config.DynEnergyInUnCore].SetDeltaStat(utils.GenericSocketID, energy) } - if err != nil { - klog.V(5).Infoln(err) - } // add GPU power consumption if errGPU == nil { @@ -269,9 +256,6 @@ func addEstimatedEnergy(processIDList []uint64, processesMetrics map[uint64]*sta } else { processesMetrics[processID].EnergyUsage[config.DynEnergyInGPU].SetDeltaStat(utils.GenericSocketID, energy) } - if err != nil { - klog.V(5).Infoln(err) - } } } @@ -282,9 +266,6 @@ func addEstimatedEnergy(processIDList []uint64, processesMetrics map[uint64]*sta } else { processesMetrics[processID].EnergyUsage[config.DynEnergyInPlatform].SetDeltaStat(utils.GenericSocketID, energy) } - if err != nil { - klog.V(5).Infoln(err) - } } // estimate other components power if both platform and components power are available @@ -302,9 +283,6 @@ func addEstimatedEnergy(processIDList []uint64, processesMetrics map[uint64]*sta } else { processesMetrics[processID].EnergyUsage[config.DynEnergyInOther].SetDeltaStat(utils.GenericSocketID, energy) } - if err != nil { - klog.V(5).Infoln(err) - } } } }