-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update memory_above detector to support total memory usage
Summary: memory_above confusingly tests anon usage against the threshold. Update it so that it supports both total and anon usages. * MemoryAbove is updated to interpret threshold as the threshold for the total memory usage and threshold_anon the anon memory usage. To provide a transition from older config, when both are specified, threshold_anon has the priority so that configurations can specify both threshold and threshold_anon during transition. * For simplicity, MemoryAbove now evaulates the thresholds into bytes during configuration instead of execution. * All existing memory_above tests are converted to test against total memory usage. Two anon usage tests added and two anon vs. memory priority tests added. Reviewed By: danobi Differential Revision: D14751533 fbshipit-source-id: 04a3a7e96cb4e6fa8cdf70f2292a7d2d69d1ceba
- Loading branch information
1 parent
198f248
commit 3016f1f
Showing
4 changed files
with
147 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters