Add PSI support to profiler, guarded by `--experimental_collect_pressure_stall_indicators`.

May be a better indicator for system load than load average. See details on PSI at https://docs.kernel.org/accounting/psi.html

PiperOrigin-RevId: 509753038
Change-Id: I706e8c301a68fcba84730d5dfe0127d3d531ad9c
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 4f636c5..4412969 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
@@ -328,6 +328,14 @@
   public boolean collectResourceEstimation;
 
   @Option(
+      name = "experimental_collect_pressure_stall_indicators",
+      defaultValue = "false",
+      documentationCategory = OptionDocumentationCategory.LOGGING,
+      effectTags = {OptionEffectTag.BAZEL_MONITORING},
+      help = "If enabled, the profiler collects the Linux PSI data.")
+  public boolean collectPressureStallIndicators;
+
+  @Option(
       name = "memory_profile",
       defaultValue = "null",
       documentationCategory = OptionDocumentationCategory.LOGGING,