summaryrefslogtreecommitdiff
path: root/buildstream/_frontend/widget.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-29 15:20:09 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-05-08 03:59:38 +0900
commit2390c81411aee2019cec891ea0be5247e779bc2e (patch)
treebb065bef7e66507e65f0b7564a18ddf1002f44b9 /buildstream/_frontend/widget.py
parentbbb894bdd921f39e4440e74351b5f478f65555f3 (diff)
downloadbuildstream-2390c81411aee2019cec891ea0be5247e779bc2e.tar.gz
_stream.py: New Stream object, main calling interface for BuildStream core
This is the first part of the pipeline refactor, at this stage all calling interfaces remain the same, except that invocation of the scheduler has been moved from Pipline to Stream.
Diffstat (limited to 'buildstream/_frontend/widget.py')
-rw-r--r--buildstream/_frontend/widget.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py
index b5942b91e..a72293b04 100644
--- a/buildstream/_frontend/widget.py
+++ b/buildstream/_frontend/widget.py
@@ -530,12 +530,12 @@ class LogLine(Widget):
# Print a summary of activities at the end of a session
#
# Args:
- # pipeline (Pipeline): The Pipeline
+ # stream (Stream): The Stream
# scheduler (Scheduler): The Scheduler
# log_file (file): An optional file handle for additional logging
# styling (bool): Whether to enable ansi escape codes in the output
#
- def print_summary(self, pipeline, scheduler, log_file, styling=False):
+ def print_summary(self, stream, scheduler, log_file, styling=False):
# Early silent return if there are no queues, can happen
# only in the case that the pipeline early returned due to
@@ -563,8 +563,8 @@ class LogLine(Widget):
text += self.content_profile.fmt("Pipeline Summary\n", bold=True)
values = OrderedDict()
- values['Total'] = self.content_profile.fmt(str(pipeline.total_elements))
- values['Session'] = self.content_profile.fmt(str(pipeline.session_elements))
+ values['Total'] = self.content_profile.fmt(str(stream.total_elements))
+ values['Session'] = self.content_profile.fmt(str(stream.session_elements))
processed_maxlen = 1
skipped_maxlen = 1