mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
buildman: Show the build rate at the end
It is interesting to note the number of builds completed per second to track machine performance and build speed. Add a 'rate' value at the end of the build to show this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3918dfaa91
commit
38f159c05b
2 changed files with 15 additions and 1 deletions
|
@ -1677,7 +1677,8 @@ class Builder:
|
|||
if duration.microseconds >= 500000:
|
||||
duration = duration + timedelta(seconds=1)
|
||||
duration = duration - timedelta(microseconds=duration.microseconds)
|
||||
msg += ', duration %s' % duration
|
||||
rate = float(self.count) / duration.total_seconds()
|
||||
msg += ', duration %s, rate %1.2f' % (duration, rate)
|
||||
Print(msg)
|
||||
|
||||
return (self.fail, self.warned)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue