Lines Matching refs:power_history
49 for (size_t i = 0; i < power_status_pair.second.power_history.size(); ++i) { in setPowerDataToDefault()
50 for (size_t j = 0; j < power_status_pair.second.power_history[i].size(); ++j) { in setPowerDataToDefault()
51 power_status_pair.second.power_history[i].pop(); in setPowerDataToDefault()
52 power_status_pair.second.power_history[i].emplace(power_sample); in setPowerDataToDefault()
79 std::vector<std::queue<PowerSample>> power_history; in registerPowerRailsToWatch() local
101 power_history.emplace_back(std::queue<PowerSample>()); in registerPowerRailsToWatch()
103 power_history[i].emplace(power_sample); in registerPowerRailsToWatch()
109 power_history.emplace_back(std::queue<PowerSample>()); in registerPowerRailsToWatch()
111 power_history[0].emplace(power_sample); in registerPowerRailsToWatch()
116 if (power_history.size()) { in registerPowerRailsToWatch()
122 .power_history = power_history, in registerPowerRailsToWatch()
233 std::queue<PowerSample> *power_history, bool power_sample_update, in getAveragePower() argument
238 const auto last_sample = power_history->front(); in getAveragePower()
256 power_history->pop(); in getAveragePower()
257 power_history->push(curr_sample); in getAveragePower()
275 &power_status->power_history[i], power_sample_update, in computeAveragePower()
364 ? getAveragePower(binded_cdev_info.power_rail, &power_status.power_history[0], in throttlingReleaseUpdate()