summaryrefslogtreecommitdiff
path: root/buildstream/buildelement.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-02-23 15:41:50 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-02-23 15:45:29 +0900
commit766f760bac45b63dcd6cd6f5d3281a5d101e9f7f (patch)
tree194116ec3a2d0b8e79c791caeafc838575bdf89a /buildstream/buildelement.py
parent5deaba3cd82c457305864817a4d9f0bfb327c2d2 (diff)
downloadbuildstream-766f760bac45b63dcd6cd6f5d3281a5d101e9f7f.tar.gz
buildelement.py: Timed activity for staging dependencies and running integration
Diffstat (limited to 'buildstream/buildelement.py')
-rw-r--r--buildstream/buildelement.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/buildstream/buildelement.py b/buildstream/buildelement.py
index 3e7335b37..613f4c0f0 100644
--- a/buildstream/buildelement.py
+++ b/buildstream/buildelement.py
@@ -68,13 +68,15 @@ class BuildElement(Element):
def assemble(self, sandbox):
# Stage deps in the sandbox root
- for dep in self.dependencies(Scope.BUILD):
- dep.stage(sandbox)
+ with self.timed_activity("Staging dependencies", silent_nested=True):
+ for dep in self.dependencies(Scope.BUILD):
+ dep.stage(sandbox)
# Run any integration commands provided by the dependencies
# once they are all staged and ready
- for dep in self.dependencies(Scope.BUILD):
- dep.integrate(sandbox)
+ with self.timed_activity("Integrating sandbox", silent_nested=True):
+ for dep in self.dependencies(Scope.BUILD):
+ dep.integrate(sandbox)
# Stage sources in /buildstream/build
self.stage_sources(sandbox, '/buildstream/build')