diff options
| author | 2024-09-10 00:50:54 +0000 | |
|---|---|---|
| committer | 2024-09-10 17:49:42 +0000 | |
| commit | 509d4ce70b04d0cad2f4b2d3a81ec2f6f1fc86c8 (patch) | |
| tree | 195b1131da9c18cc0d3991bd4fba4ef016a15d90 /api/api.go | |
| parent | d65f8d0605f6ddf9adb8bb5305ca3321363f0feb (diff) | |
Rate limit calls to AM.getMyMemoryState().
Apps do not need to call getMyMemoryState any more than 200 times per
second. Rate limit this API to 2 calls every 10ms which will allow
apps to keep getting updated info at a reasonable interval.
Flag: android.app.rate_limit_get_my_memory_state
Bug: 365182205
Test: atest ActivityManagerTest
Test: manually check logs for cache hits/misses
Change-Id: I0ab53c8f477dc5a82c812d1fe541491e04367cc9
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions