diff --git a/src/main/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunner.java b/src/main/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunner.java index cbcc6e7d997ba5..0ad8d5e338e7b2 100644 --- a/src/main/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunner.java +++ b/src/main/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunner.java @@ -425,8 +425,7 @@ private SpawnResult start() TerminationStatus terminationStatus; try (SilentCloseable c = Profiler.instance() - .profile( - ProfilerTask.REMOTE_PROCESS_TIME, spawn.getResourceOwner().getMnemonic())) { + .profile(ProfilerTask.LOCAL_PROCESS_TIME, spawn.getResourceOwner().getMnemonic())) { needCleanup = true; Subprocess subprocess = subprocessBuilder.start(); try { diff --git a/src/main/java/com/google/devtools/build/lib/profiler/ProfilerTask.java b/src/main/java/com/google/devtools/build/lib/profiler/ProfilerTask.java index 8e42f7e0ebed3b..1c17751576329c 100644 --- a/src/main/java/com/google/devtools/build/lib/profiler/ProfilerTask.java +++ b/src/main/java/com/google/devtools/build/lib/profiler/ProfilerTask.java @@ -43,6 +43,7 @@ public enum ProfilerTask { REMOTE_QUEUE("Remote execution queuing time", Threshold.FIFTY_MILLIS), REMOTE_SETUP("Remote execution setup", Threshold.FIFTY_MILLIS), FETCH("Remote execution file fetching", Threshold.FIFTY_MILLIS), + LOCAL_PROCESS_TIME("Local execution process wall time", Threshold.FIFTY_MILLIS), VFS_STAT("VFS stat", Threshold.TEN_MILLIS, /* collectsSlowestInstances= */ true), VFS_DIR("VFS readdir", Threshold.TEN_MILLIS, /* collectsSlowestInstances= */ true), VFS_READLINK("VFS readlink", Threshold.TEN_MILLIS, /* collectsSlowestInstances= */ true),