Tools: build_binaries.py: split timing out for configure/build steps
This commit is contained in:
parent
9d1c3a2df0
commit
477528bd93
@ -461,6 +461,9 @@ is bob we will attempt to checkout bob-AVR'''
|
|||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
self.progress("waf configure failed")
|
self.progress("waf configure failed")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
time_taken_to_configure = time.time() - t0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
target = os.path.join("bin",
|
target = os.path.join("bin",
|
||||||
"".join([binaryname, framesuffix]))
|
"".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)
|
self.history.record_build(githash, tag, vehicle, board, frame, None, t0, time_taken_to_build)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
t1 = time.time()
|
time_taken_to_build = (time.time()-t0) - time_taken_to_configure
|
||||||
time_taken_to_build = t1-t0
|
|
||||||
self.progress("Building %s %s %s %s took %u seconds" %
|
time_taken = time.time()-t0
|
||||||
(vehicle, tag, board, frame, time_taken_to_build))
|
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,
|
bare_path = os.path.join(self.buildroot,
|
||||||
board,
|
board,
|
||||||
|
Loading…
Reference in New Issue
Block a user