diff options
author | twerth <twerth@google.com> | 2018-07-27 06:11:47 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-27 06:13:25 -0700 |
commit | 2193da931c6804c497f8320dcc81e0d119d26c8c (patch) | |
tree | ab9f07f9684437c25da0dc89a5fc9c74d7f23422 /src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java | |
parent | 0858ae1f6eb890c1e203a2aa21130ba34ca36a27 (diff) |
Add an option to compress the JSON trace profile.
chrome://tracing is able to load gzipped profiles out of the box.
RELNOTES: None
PiperOrigin-RevId: 206308018
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java index b398aff727..cef27315e6 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java @@ -196,6 +196,14 @@ public class CommonCommandOptions extends OptionsBase { public boolean enableTracer; @Option( + name = "experimental_json_trace_compression", + defaultValue = "false", + documentationCategory = OptionDocumentationCategory.LOGGING, + effectTags = {OptionEffectTag.AFFECTS_OUTPUTS, OptionEffectTag.BAZEL_MONITORING}, + help = "If enabled, Bazel compresses the JSON-format profile with gzip.") + public boolean enableTracerCompression; + + @Option( name = "profile", defaultValue = "null", documentationCategory = OptionDocumentationCategory.LOGGING, |