diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-02-23 15:41:50 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-02-23 15:45:29 +0900 |
commit | 766f760bac45b63dcd6cd6f5d3281a5d101e9f7f (patch) | |
tree | 194116ec3a2d0b8e79c791caeafc838575bdf89a /buildstream/buildelement.py | |
parent | 5deaba3cd82c457305864817a4d9f0bfb327c2d2 (diff) | |
download | buildstream-766f760bac45b63dcd6cd6f5d3281a5d101e9f7f.tar.gz |
buildelement.py: Timed activity for staging dependencies and running integration
Diffstat (limited to 'buildstream/buildelement.py')
-rw-r--r-- | buildstream/buildelement.py | 10 |
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') |