Skip to content

Commit 480b234

Browse files
coeuvrecopybara-github
authored andcommitted
Fix profile task type for local execution time.
Instead of using REMOTE_PROCESS_TIME, it now uses `LOCAL_PROCESS_TIME`. PiperOrigin-RevId: 567231250 Change-Id: I39f08bd41f4f6673784895a8002057a12da6b08c
1 parent 564ef7f commit 480b234

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunner.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,7 @@ private SpawnResult start()
425425
TerminationStatus terminationStatus;
426426
try (SilentCloseable c =
427427
Profiler.instance()
428-
.profile(
429-
ProfilerTask.REMOTE_PROCESS_TIME, spawn.getResourceOwner().getMnemonic())) {
428+
.profile(ProfilerTask.LOCAL_PROCESS_TIME, spawn.getResourceOwner().getMnemonic())) {
430429
needCleanup = true;
431430
Subprocess subprocess = subprocessBuilder.start();
432431
try {

src/main/java/com/google/devtools/build/lib/profiler/ProfilerTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public enum ProfilerTask {
4343
REMOTE_QUEUE("Remote execution queuing time", Threshold.FIFTY_MILLIS),
4444
REMOTE_SETUP("Remote execution setup", Threshold.FIFTY_MILLIS),
4545
FETCH("Remote execution file fetching", Threshold.FIFTY_MILLIS),
46+
LOCAL_PROCESS_TIME("Local execution process wall time", Threshold.FIFTY_MILLIS),
4647
VFS_STAT("VFS stat", Threshold.TEN_MILLIS, /* collectsSlowestInstances= */ true),
4748
VFS_DIR("VFS readdir", Threshold.TEN_MILLIS, /* collectsSlowestInstances= */ true),
4849
VFS_READLINK("VFS readlink", Threshold.TEN_MILLIS, /* collectsSlowestInstances= */ true),

0 commit comments

Comments
 (0)