commit | 8858f6b5608e22e2f08e8a3544b9eee04aa706f8 | [log] [tgz] |
---|---|---|
author | Varun Shah <varunshah@google.com> | Wed Sep 04 18:38:31 2024 +0000 |
committer | Varun Shah <varunshah@google.com> | Sun Sep 08 01:15:31 2024 +0000 |
tree | 189f4215e938a6f03fef3231a904d8e5d480ead6 | |
parent | 5bb8031597a249e890773c4131ac1c7e90da09e3 [diff] |
Rate limit calls to AM.getMemoryInfo(). Apps do not need to call getMemoryInfo any more than 100 times per second. Rate limit this API - if apps want to consume information about their own memory usage, they can use the getMyMemoryState API instead. Flag: android.app.rate_limit_get_memory_info Bug: 364312431 Test: atest ActivityManagerTest Test: manually check logs for cache hits/misses Change-Id: If2494509d76e269b0ad75d8d73bc6848adab490b