Keep track of the time we spend copying to/from build machines

This commit is contained in:
Eelco Dolstra
2016-02-17 10:28:42 +01:00
parent e46acbf05b
commit d7a123fcd4
7 changed files with 41 additions and 11 deletions

View File

@ -49,6 +49,7 @@ typedef enum {
struct RemoteResult : nix::BuildResult
{
time_t startTime = 0, stopTime = 0;
unsigned int overhead = 0;
nix::Path logFile;
bool canRetry()
@ -363,7 +364,8 @@ private:
const std::string & machine, BuildStepStatus status, const std::string & errorMsg = "",
BuildID propagatedFrom = 0);
void finishBuildStep(pqxx::work & txn, time_t startTime, time_t stopTime, BuildID buildId, int stepNr,
void finishBuildStep(pqxx::work & txn, time_t startTime, time_t stopTime,
unsigned int overhead, BuildID buildId, int stepNr,
const std::string & machine, BuildStepStatus status, const std::string & errorMsg = "",
BuildID propagatedFrom = 0);