Mercurial > piecrust2
comparison piecrust/processing/records.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 | 6f216c1ab6b1 |
children | 9a92e2804562 |
comparison
equal
deleted
inserted
replaced
686:1a6c4c2683fd | 687:61d606fbc313 |
---|---|
2 import hashlib | 2 import hashlib |
3 from piecrust.records import Record, TransitionalRecord | 3 from piecrust.records import Record, TransitionalRecord |
4 | 4 |
5 | 5 |
6 class ProcessorPipelineRecord(Record): | 6 class ProcessorPipelineRecord(Record): |
7 RECORD_VERSION = 5 | 7 RECORD_VERSION = 6 |
8 | 8 |
9 def __init__(self): | 9 def __init__(self): |
10 super(ProcessorPipelineRecord, self).__init__() | 10 super(ProcessorPipelineRecord, self).__init__() |
11 self.out_dir = None | 11 self.out_dir = None |
12 self.process_time = None | 12 self.process_time = None |
13 self.processed_count = 0 | 13 self.processed_count = 0 |
14 self.success = False | 14 self.success = False |
15 self.timers = None | |
16 | 15 |
17 | 16 |
18 FLAG_NONE = 0 | 17 FLAG_NONE = 0 |
19 FLAG_PREPARED = 2**0 | 18 FLAG_PREPARED = 2**0 |
20 FLAG_PROCESSED = 2**1 | 19 FLAG_PROCESSED = 2**1 |