[llvm] [lit] Add an option to lit which ratelimits progressbar output. (PR #186479)

Nick Begg via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 15 05:04:46 PDT 2026


================
@@ -235,6 +235,14 @@ def parse_args():
         help="Do not use curses based progress bar (default)",
         action="store_false",
     )
+    format_group.add_argument(
+        "--min-output-interval",
+        dest="minOutputInterval",
+        help="Limit updates to progressbar to at most once per INTERVAL, in seconds. Set to 0 to disable ratelimit (default 0.2 seconds).",
+        default=0.2,
----------------
neek78 wrote:

I thought about this.. 

I guess I arrived at the conclusion - "who needs to see hundreds of updates per sec?".  This doesn't affect logged output, only the case that has a progress bar. It's possible to still set it to 0 of course and see all updates.. But this seems a sensible default for the common use case. Plus you can actually read it when its only outputting a few times a sec.

https://github.com/llvm/llvm-project/pull/186479


More information about the llvm-commits mailing list