Searched refs:last_sample (Results 1 – 1 of 1) sorted by relevance
43 bool calculateAvgPower(std::string_view power_rail, const PowerSample &last_sample, in calculateAvgPower() argument46 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()53 << " is invalid: last_sample=" << last_sample.energy_counter in calculateAvgPower()54 << "(T=" << last_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()245 const auto last_sample = power_history->front(); in updateAveragePower() local247 if (calculateAvgPower(power_rail, last_sample, curr_sample, &avg_power)) { in updateAveragePower()[all …]