Lines Matching refs:avg_power
44 const PowerSample &curr_sample, float *avg_power) { in calculateAvgPower() argument
45 *avg_power = NAN; in calculateAvgPower()
61 *avg_power = static_cast<float>(deltaEnergy) / static_cast<float>(duration); in calculateAvgPower()
62 LOG(VERBOSE) << "Power rail " << power_rail.data() << ", avg power = " << *avg_power in calculateAvgPower()
240 float avg_power = NAN; in updateAveragePower() local
243 return avg_power; in updateAveragePower()
247 if (calculateAvgPower(power_rail, last_sample, curr_sample, &avg_power)) { in updateAveragePower()
251 return avg_power; in updateAveragePower()
255 float avg_power = NAN; in updatePowerRail() local
258 return avg_power; in updatePowerRail()
262 return avg_power; in updatePowerRail()
279 return avg_power; in updatePowerRail()
283 avg_power = updateAveragePower(power_rail, &power_status.power_history[0]); in updatePowerRail()
323 avg_power = avg_power_val; in updatePowerRail()
326 if (avg_power < 0) { in updatePowerRail()
327 avg_power = NAN; in updatePowerRail()
330 power_status.last_updated_avg_power = avg_power; in updatePowerRail()
332 return avg_power; in updatePowerRail()
360 float avg_power = NAN; in logPowerStatus() local
361 if (calculateAvgPower(rail, last_sample, curr_sample, &avg_power) && in logPowerStatus()
362 !std::isnan(avg_power)) { in logPowerStatus()
370 out.append(StringPrintf("[%s: %0.2f mW] ", rail.c_str(), avg_power)); in logPowerStatus()
372 tot_power += avg_power; in logPowerStatus()