Add option to disable announcing the JSON profile location.
e.g.
blaze build --noexperimental_announce_profile_path
#9988
RELNOTES: None
PiperOrigin-RevId: 275794230
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 706be93..25411a2 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
@@ -308,6 +308,14 @@
public boolean enableJsonProfileDiet;
@Option(
+ name = "experimental_announce_profile_path",
+ defaultValue = "true",
+ documentationCategory = OptionDocumentationCategory.LOGGING,
+ effectTags = {OptionEffectTag.AFFECTS_OUTPUTS, OptionEffectTag.BAZEL_MONITORING},
+ help = "If enabled, adds the JSON profile path to the log.")
+ public boolean announceProfilePath;
+
+ @Option(
name = "profile",
defaultValue = "null",
documentationCategory = OptionDocumentationCategory.LOGGING,