remote: remove buildAction profiler call
the work done for building an action proto is trivial and not worth to
be included in the json profile. this is a left over from when we used
to build the merkle tree in buildAction, but this is no longer the case.
Closes #7824.
PiperOrigin-RevId: 240144048
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java
index 7d9d2bd..6c781eb 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java
@@ -113,15 +113,11 @@
Command command =
RemoteSpawnRunner.buildCommand(
spawn.getOutputFiles(), spawn.getArguments(), spawn.getEnvironment(), platform);
- Action action;
- final ActionKey actionKey;
- try (SilentCloseable c = Profiler.instance().profile("RemoteCache.buildAction")) {
- action =
- RemoteSpawnRunner.buildAction(
- digestUtil.compute(command), merkleTreeRoot, context.getTimeout(), true);
- // Look up action cache, and reuse the action output if it is found.
- actionKey = digestUtil.computeActionKey(action);
- }
+ Action action =
+ RemoteSpawnRunner.buildAction(
+ digestUtil.compute(command), merkleTreeRoot, context.getTimeout(), true);
+ // Look up action cache, and reuse the action output if it is found.
+ ActionKey actionKey = digestUtil.computeActionKey(action);
Context withMetadata =
TracingMetadataUtils.contextWithMetadata(buildRequestId, commandId, actionKey);