Home
last modified time | relevance | path

Searched refs:io_history_ (Results 1 – 2 of 2) sorted by relevance

/system/core/storaged/
Dstoraged_uid_monitor.cpp217 auto it = io_history_.lower_bound(curr_ts - 5 * DAY_TO_SEC); in add_records_locked()
218 io_history_.erase(io_history_.begin(), it); in add_records_locked()
246 io_history_[curr_ts] = new_records; in add_records_locked()
250 ssize_t overflow = history_size(io_history_) + nitems - MAX_UID_RECORDS_SIZE; in maybe_shrink_history_for_items()
251 while (overflow > 0 && io_history_.size() > 0) { in maybe_shrink_history_for_items()
252 auto del_it = io_history_.begin(); in maybe_shrink_history_for_items()
254 io_history_.erase(io_history_.begin()); in maybe_shrink_history_for_items()
274 for (auto it = io_history_.lower_bound(first_ts); it != io_history_.end(); ++it) { in dump()
410 for (const auto& item : io_history_) { in update_uid_io_proto()
452 for (auto& item : io_history_) { in clear_user_history()
[all …]
/system/core/storaged/include/
Dstoraged_uid_monitor.h89 map<uint64_t, uid_records> io_history_; variable
130 map<uint64_t, uid_records>& io_history() { return io_history_; } in io_history()