diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-11-18 13:40:59 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-11-18 13:40:59 +0100 |
commit | fa68eb367e79297bb1c0451cd92ad18a06edce96 (patch) | |
tree | fb466b3f1fe55c0db748075232022aa02e6a51c6 /src/libstore/build/derivation-goal.cc | |
parent | 20f66c6889aa9d907feee4946702d655b6bd796f (diff) |
Get CPU stats from the cgroup
Diffstat (limited to 'src/libstore/build/derivation-goal.cc')
-rw-r--r-- | src/libstore/build/derivation-goal.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index 41d2e2a1c..9bc3dc742 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -869,6 +869,14 @@ void DerivationGoal::buildDone() cleanupPostChildKill(); + if (buildResult.cpuUser && buildResult.cpuSystem) { + debug("builder for '%s' terminated with status %d, user CPU %.3fs, system CPU %.3fs", + worker.store.printStorePath(drvPath), + status, + ((double) buildResult.cpuUser->count()) / 1000000, + ((double) buildResult.cpuSystem->count()) / 1000000); + } + bool diskFull = false; try { |