From d12db5975687a87b6d36543747234200d0cdc3b5 Mon Sep 17 00:00:00 2001 From: twerth Date: Tue, 14 Aug 2018 07:53:40 -0700 Subject: Add experimental option to do add local cpu usage values to the JSON profile. RELNOTES: None PiperOrigin-RevId: 208646319 --- .../google/devtools/build/lib/runtime/CommonCommandOptions.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java') 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 @@ -211,6 +211,14 @@ public class CommonCommandOptions extends OptionsBase { help = "If set, Bazel will post the ProfilerStartedEvent including the path to the profile.") 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", -- cgit v1.2.3