Skip to content

Commit

Permalink
Automated rollback of commit ed825a4.
Browse files Browse the repository at this point in the history
*** Reason for rollback ***

Main suspect for regressions in current Blaze canary.

*** Original change description ***

Add cumulative SpawnMetrics to the blaze.actions table

PiperOrigin-RevId: 416335592
  • Loading branch information
larsrc-google authored and Copybara-Service committed Dec 14, 2021
1 parent 7b37eb6 commit 7074bcf
Showing 1 changed file with 0 additions and 100 deletions.
100 changes: 0 additions & 100 deletions src/main/java/com/google/devtools/build/lib/actions/ActionResult.java
Expand Up @@ -164,106 +164,6 @@ public Optional<Long> cumulativeCommandExecutionMemoryInKb() {
return getCumulativeLong(SpawnResult::getMemoryInKb);
}

/**
* Returns the cumulative spawns total time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeSpawnsTotalTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().totalTime()));
}

/**
* Returns the cumulative spawns parse time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeSpawnsParseTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().parseTime()));
}

/**
* Returns the cumulative spawns network time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeSpawnsNetworkTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().networkTime()));
}

/**
* Returns the cumulative spawns fetch time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeSpawnsFetchTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().fetchTime()));
}

/**
* Returns the cumulative spawns queue time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeSpawnsQueueTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().queueTime()));
}

/**
* Returns the cumulative spawns setup time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeSpawnsSetupTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().setupTime()));
}

/**
* Returns the cumulative spawns upload time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeSpawnsUploadTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().uploadTime()));
}

/**
* Returns the cumulative spawns execution wall time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeExecutionWallTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().executionWallTime()));
}

/**
* Returns the cumulative spawns process output time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeProcessOutputTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().processOutputsTime()));
}

/**
* Returns the cumulative spawns retry time for the {@link Action}.
*
* @return the cumulative measurement, or empty in case of execution errors or when the
* measurement is not implemented for the current platform
*/
public Optional<Duration> cumulativeRetryTime() {
return getCumulativeTime(s -> Optional.of(s.getMetrics().retryTime()));
}

/**
* Indicates whether all {@link Spawn}s executed locally or not.
*
Expand Down

0 comments on commit 7074bcf

Please sign in to comment.