From 93a7a3a4180383d014c65c45ae7affce98c58257 Mon Sep 17 00:00:00 2001 From: Abderrahim Kitouni Date: Thu, 4 Feb 2021 17:51:15 +0100 Subject: [PATCH] buildelement: switch order of timed_activity and sandbox.batch We want the actual sandbox operations to be timed. --- src/buildstream/buildelement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buildstream/buildelement.py b/src/buildstream/buildelement.py index 5554e7fb2..aa71580e2 100644 --- a/src/buildstream/buildelement.py +++ b/src/buildstream/buildelement.py @@ -288,7 +288,7 @@ def stage(self, sandbox): root_list = self.__layout.get("/", None) if root_list: element_list = [element for element, _ in root_list] - with sandbox.batch(SandboxFlags.NONE), self.timed_activity("Integrating sandbox", silent_nested=True): + with self.timed_activity("Integrating sandbox", silent_nested=True), sandbox.batch(SandboxFlags.NONE): for dep in self.dependencies(element_list): dep.integrate(sandbox)