Lines Matching refs:curr_sample

44                        const PowerSample &curr_sample, float *avg_power) {  in calculateAvgPower()  argument
46 if (curr_sample.duration == last_sample.duration) { in calculateAvgPower()
50 } else if (curr_sample.duration < last_sample.duration || in calculateAvgPower()
51 curr_sample.energy_counter < last_sample.energy_counter) { in calculateAvgPower()
55 << ", curr_sample=" << curr_sample.energy_counter in calculateAvgPower()
56 << "(T=" << curr_sample.duration << ")"; in calculateAvgPower()
59 const auto duration = curr_sample.duration - last_sample.duration; in calculateAvgPower()
60 const auto deltaEnergy = curr_sample.energy_counter - last_sample.energy_counter; in calculateAvgPower()
108 const auto curr_sample = energy_info_map_.at(power_rail); in registerPowerRailsToWatch() local
111 power_history[i].emplace(curr_sample); in registerPowerRailsToWatch()
116 const auto curr_sample = energy_info_map_.at(power_rail_info_pair.first); in registerPowerRailsToWatch() local
119 power_history[0].emplace(curr_sample); in registerPowerRailsToWatch()
246 const auto curr_sample = energy_info_map_.at(power_rail.data()); in updateAveragePower() local
247 if (calculateAvgPower(power_rail, last_sample, curr_sample, &avg_power)) { in updateAveragePower()
249 power_history->push(curr_sample); in updateAveragePower()
359 const auto &curr_sample = energy_info_pair.second; in logPowerStatus() local
361 if (calculateAvgPower(rail, last_sample, curr_sample, &avg_power) && in logPowerStatus()
373 max_duration = std::max(max_duration, curr_sample.duration - last_sample.duration); in logPowerStatus()