aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/exec/local/LocalExecutionOptions.java
diff options
context:
space:
mode:
authorGravatar ruperts <ruperts@google.com>2017-12-22 16:59:38 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-22 17:01:49 -0800
commitda00941ea78e75cdad15df7fe041bc4de6e1dcfe (patch)
treed88e2effeef60c01e3dac3a43a566ada71a6dec0 /src/main/java/com/google/devtools/build/lib/exec/local/LocalExecutionOptions.java
parentd806ab5dbf90ddd531108c1a93ff4efe57dfde81 (diff)
Enable local action execution statistics collection for sandboxed actions that use either the LinuxSandboxedSpawnRunner or the ProcessWrapperSandboxedSpawnRunner.
In particular, record metrics for user and system CPU execution time, block I/O and involuntary context switches. This feature is guarded behind a new option, --experimental_collect_local_sandbox_action_metrics. Note: We still need to enable execution statistics for the DarwinSandboxedSpawnRunner in a later change. RELNOTES: None. PiperOrigin-RevId: 179976217
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/exec/local/LocalExecutionOptions.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/exec/local/LocalExecutionOptions.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/exec/local/LocalExecutionOptions.java b/src/main/java/com/google/devtools/build/lib/exec/local/LocalExecutionOptions.java
index 1b851f2b09..08aaa53e33 100644
--- a/src/main/java/com/google/devtools/build/lib/exec/local/LocalExecutionOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/exec/local/LocalExecutionOptions.java
@@ -17,7 +17,6 @@ import com.google.devtools.common.options.Converters;
import com.google.devtools.common.options.Option;
import com.google.devtools.common.options.OptionDocumentationCategory;
import com.google.devtools.common.options.OptionEffectTag;
-import com.google.devtools.common.options.OptionMetadataTag;
import com.google.devtools.common.options.OptionsBase;
import java.util.regex.Pattern;
@@ -56,10 +55,9 @@ public class LocalExecutionOptions extends OptionsBase {
defaultValue = "false",
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
effectTags = {OptionEffectTag.EXECUTION},
- metadataTags = {OptionMetadataTag.DEPRECATED},
help =
"When enabled, execution statistics (such as user and system time) are recorded for "
- + "locally executed actions"
+ + "locally executed actions which don't use sandboxing"
)
public boolean collectLocalExecutionStatistics;
}