libsanitizer: add filtering of sleep intervals for BackgroundThread.
[platform/upstream/linaro-gcc.git] / libsanitizer / sanitizer_common / sanitizer_flags.inc
index 836f872..47f812a 100644 (file)
@@ -121,6 +121,10 @@ COMMON_FLAG(uptr, soft_rss_limit_mb, 0,
             " until the RSS goes below the soft limit."
             " This limit does not affect memory allocations other than"
             " malloc/new.")
+COMMON_FLAG(int, bgthread_min_sleep_ms, 2,
+            "Lower bound for background thread sleeping interval.")
+COMMON_FLAG(int, bgthread_max_sleep_ms, 100,
+            "Upper bound for background thread sleeping interval.")
 COMMON_FLAG(bool, heap_profile, false,
             "Experimental. Enables heap profiler (asan-only).")
 COMMON_FLAG(bool, heap_profile_timestamp, false,