diff options
author | twerth <twerth@google.com> | 2018-08-14 07:53:40 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-08-14 07:55:28 -0700 |
commit | d12db5975687a87b6d36543747234200d0cdc3b5 (patch) | |
tree | ab6500d9a06422d6fdbfe2cf6831ebf6a48531d0 /src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java | |
parent | a05e6ccdba85f5e827245aa581accd2867e40851 (diff) |
Add experimental option to do add local cpu usage values to the JSON profile.
RELNOTES: None
PiperOrigin-RevId: 208646319
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 4a32b2c405..86c4581304 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 @@ -212,6 +212,14 @@ public class CommonCommandOptions extends OptionsBase { public boolean postProfileStartedEvent; @Option( + name = "experimental_profile_cpu_usage", + defaultValue = "false", + documentationCategory = OptionDocumentationCategory.LOGGING, + effectTags = {OptionEffectTag.AFFECTS_OUTPUTS, OptionEffectTag.BAZEL_MONITORING}, + help = "If set, Bazel will measure cpu usage and add it to the JSON profile.") + public boolean enableCpuUsageProfiling; + + @Option( name = "profile", defaultValue = "null", documentationCategory = OptionDocumentationCategory.LOGGING, |