Home
last modified time | relevance | path

Searched refs:recent_perf (Results 1 – 4 of 4) sorted by relevance

/aosp12/system/core/storaged/
H A Dstoraged_info.cpp88 recent_perf.erase(recent_perf.begin() + nr_samples, recent_perf.end()); in load_perf_history_proto()
93 recent_perf[i] = bw; in load_perf_history_proto()
167 recent_perf.erase(recent_perf.begin() + nr_samples, recent_perf.end()); in update_perf_history()
171 if (!recent_perf.empty()) { in update_perf_history()
172 daily_avg_bw = accumulate(recent_perf.begin(), recent_perf.end(), 0) / recent_perf.size(); in update_perf_history()
179 if (recent_perf.empty()) in update_perf_history()
180 recent_perf.resize(1); in update_perf_history()
207 ret[0] = recent_perf.size(); in get_perf_history()
213 int idx = (recent_perf.size() + nr_samples - 1 - i) % recent_perf.size(); in get_perf_history()
235 return accumulate(recent_perf.begin(), recent_perf.end(), recent_perf.size() / 2) / in get_recent_perf()
[all …]
H A Dstoraged_service.cpp178 uint32_t recent_perf = storaged_sp->get_recent_perf(); in getRecentPerf() local
179 if (recent_perf > INT32_MAX) { in getRecentPerf()
182 *_aidl_return = static_cast<int32_t>(recent_perf); in getRecentPerf()
H A Dstoraged.proto46 repeated uint32 recent_perf = 2; field
/aosp12/system/core/storaged/include/
H A Dstoraged_info.h53 vector<uint32_t> recent_perf; variable