diff options
author | Klaus Aehlig <aehlig@google.com> | 2016-06-21 08:44:15 +0000 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2016-06-21 09:59:33 +0000 |
commit | cd211eebe4a2eb776ecf7ee65cc5954aa1110e48 (patch) | |
tree | c3f9359bc3c877c1b361acce402209df56f47d0e /src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java | |
parent | 7ec10f916afa89975a3451b2083591d9191cd615 (diff) |
Add an option for the number of actions shown in the experimental UI
Currently, the experimental UI always shows the 3 oldest, still running actions.
While this seems a reasonable default, some users requested to be able to change
the number of actions shown. Hence replace the hard-coded value by a flag.
While there, also fix an off-by-one error in deciding when to put the ellipsis
symbol.
--
Change-Id: I037d208360fa1d3f100c99ab1ab1f5fc140138ac
Reviewed-on: https://bazel-review.googlesource.com/#/c/3811
MOS_MIGRATED_REVID=125427168
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java index 635a4561a0..85fb3fa45c 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandEventHandler.java @@ -157,6 +157,13 @@ public class BlazeCommandEventHandler implements EventHandler { ) public boolean experimentalUiDebugAllEvents; + @Option( + name = "experimental_ui_actions_shown", + defaultValue = "3", + category = "hidden", + help = "Number of concurrent actions shown in the experimental new Bazel UI." + ) + public int experimentalUiActionsShown; public boolean useColor() { return useColorEnum == UseColor.YES || (useColorEnum == UseColor.AUTO && isATty); |