Mercurial > piecrust2
comparison piecrust/processing/worker.py @ 687:61d606fbc313
bake: Change `show-timers` to `show-stats`, add stats.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 14 Mar 2016 08:26:14 -0700 |
parents | 81d9c3a3a0b5 |
children | 9ae9390192da |
comparison
equal
deleted
inserted
replaced
686:1a6c4c2683fd | 687:61d606fbc313 |
---|---|
142 for proc in self.processors: | 142 for proc in self.processors: |
143 proc.onPipelineEnd(pipeline_ctx) | 143 proc.onPipelineEnd(pipeline_ctx) |
144 | 144 |
145 self.app.env.stepTimerSince("PipelineWorker_%d_Total" % self.wid, | 145 self.app.env.stepTimerSince("PipelineWorker_%d_Total" % self.wid, |
146 self.work_start_time) | 146 self.work_start_time) |
147 data = self.app.env.getStats() | |
147 return { | 148 return { |
148 'type': 'timers', | 149 'type': 'stats', |
149 'data': self.app.env._timers} | 150 'data': data} |
150 | 151 |
151 | 152 |
152 def get_filtered_processors(processors, authorized_names): | 153 def get_filtered_processors(processors, authorized_names): |
153 if not authorized_names or authorized_names == 'all': | 154 if not authorized_names or authorized_names == 'all': |
154 return processors | 155 return processors |