It is possible for storaged to load the same saved proto file multiple times, for example, if system_server crashes. In this case we do not want to fill io_history with duplicate entries. This patch elides records for which an app+userid record already exists for the same timestamp. Bug: 111578975 Test: gtest storaged_test.load_uid_io_proto Change-Id: I87bc3e37d6464079cece03b5852285d79067b935 Merged-In: I87bc3e37d6464079cece03b5852285d79067b935 |
||
|---|---|---|
| .. | ||
| binder/android/os | ||
| include | ||
| tests | ||
| tools | ||
| Android.bp | ||
| EventLogTags.logtags | ||
| main.cpp | ||
| OWNERS | ||
| README.properties | ||
| storaged.cpp | ||
| storaged.proto | ||
| storaged.rc | ||
| storaged_diskstats.cpp | ||
| storaged_info.cpp | ||
| storaged_service.cpp | ||
| storaged_uid_monitor.cpp | ||
| storaged_utils.cpp | ||
| uid_info.cpp | ||
ro.storaged.event.interval # interval storaged scans for IO stats, in seconds ro.storaged.event.perf_check # check for time spent in event loop, in microseconds ro.storaged.disk_stats_pub # interval storaged publish disk stats, in seconds ro.storaged.uid_io.interval # interval storaged checks Per UID IO usage, in seconds ro.storaged.uid_io.threshold # Per UID IO usage limit, in bytes