Tools: build_binaries.py: split timing out for configure/build steps

This commit is contained in:
Peter Barker 2021-11-18 09:38:19 +11:00 committed by Peter Barker
parent 9d1c3a2df0
commit 477528bd93

View File

@ -461,6 +461,9 @@ is bob we will attempt to checkout bob-AVR'''
except subprocess.CalledProcessError:
self.progress("waf configure failed")
continue
time_taken_to_configure = time.time() - t0
try:
target = os.path.join("bin",
"".join([binaryname, framesuffix]))
@ -476,10 +479,11 @@ is bob we will attempt to checkout bob-AVR'''
self.history.record_build(githash, tag, vehicle, board, frame, None, t0, time_taken_to_build)
continue
t1 = time.time()
time_taken_to_build = t1-t0
self.progress("Building %s %s %s %s took %u seconds" %
(vehicle, tag, board, frame, time_taken_to_build))
time_taken_to_build = (time.time()-t0) - time_taken_to_configure
time_taken = time.time()-t0
self.progress("Making %s %s %s %s took %u seconds (configure=%u build=%u)" %
(vehicle, tag, board, frame, time_taken, time_taken_to_configure, time_taken_to_build))
bare_path = os.path.join(self.buildroot,
board,