From 477528bd9386bbdc1a2c08ce2aa3fe338f46e179 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 18 Nov 2021 09:38:19 +1100 Subject: [PATCH] Tools: build_binaries.py: split timing out for configure/build steps --- Tools/scripts/build_binaries.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Tools/scripts/build_binaries.py b/Tools/scripts/build_binaries.py index c3975a70ef..01553f4123 100755 --- a/Tools/scripts/build_binaries.py +++ b/Tools/scripts/build_binaries.py @@ -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,