Mercurial > piecrust2
diff 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 |
line wrap: on
line diff
--- a/piecrust/processing/worker.py Sun Mar 13 16:55:12 2016 -0700 +++ b/piecrust/processing/worker.py Mon Mar 14 08:26:14 2016 -0700 @@ -144,9 +144,10 @@ self.app.env.stepTimerSince("PipelineWorker_%d_Total" % self.wid, self.work_start_time) + data = self.app.env.getStats() return { - 'type': 'timers', - 'data': self.app.env._timers} + 'type': 'stats', + 'data': data} def get_filtered_processors(processors, authorized_names):