commit | d9269e2ee70b01cad3dda14c786e0e4434192248 | [log] [tgz] |
---|---|---|
author | David Chen <dwchen@google.com> | Tue Dec 05 13:43:51 2017 -0800 |
committer | David Chen <dwchen@google.com> | Thu Dec 07 18:22:58 2017 -0800 |
tree | ed49673ea27ba84dbaa1709afb0de38ba28cc47a | |
parent | f10f83d5071ae74f38d4dec19500b53ac177e8bf [diff] |
Adds rate limit to checking byte size. Since there is a separate guardrail for memory used by uid map, we no longer add the memory from uid map with the memory per each config's metrics. We also prevent the byte size check from happening too frequently. In order to mock the MetricsManager, we refactor some of the existing methods. Test: Added unit-tests and verified they all pass on marlin. Change-Id: I15cf105f7d95f4016fdb0443b0a33eebe862cafb