Home
last modified time | relevance | path

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

/system/core/storaged/
Dstoraged_uid_monitor.cpp220 auto it = io_history_.lower_bound(curr_ts - 5 * DAY_TO_SEC); in add_records_locked()
221 io_history_.erase(io_history_.begin(), it); in add_records_locked()
249 io_history_[curr_ts] = new_records; in add_records_locked()
253 ssize_t overflow = history_size(io_history_) + nitems - MAX_UID_RECORDS_SIZE; in maybe_shrink_history_for_items()
254 while (overflow > 0 && io_history_.size() > 0) { in maybe_shrink_history_for_items()
255 auto del_it = io_history_.begin(); in maybe_shrink_history_for_items()
257 io_history_.erase(io_history_.begin()); in maybe_shrink_history_for_items()
277 for (auto it = io_history_.lower_bound(first_ts); it != io_history_.end(); ++it) { in dump()
413 for (const auto& item : io_history_) { in update_uid_io_proto()
455 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()