Skip to content

Commit

Permalink
buildelement: switch order of timed_activity and sandbox.batch
Browse files Browse the repository at this point in the history
We want the actual sandbox operations to be timed.
  • Loading branch information
abderrahim authored and cs-shadow committed Feb 9, 2021
1 parent 363ae31 commit 93a7a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildstream/buildelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 93a7a3a

Please sign in to comment.