Revision 978
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/map | ||
---|---|---|
24 | 24 |
else: return None |
25 | 25 |
|
26 | 26 |
def main_(): |
27 |
ex_tracker = exc.ExTracker() |
|
27 |
ex_tracker = exc.ExPercentTracker()
|
|
28 | 28 |
|
29 | 29 |
env_names = [] |
30 | 30 |
def usage_err(): |
... | ... | |
120 | 120 |
if end != None and i >= end: break |
121 | 121 |
process_row(row, i) |
122 | 122 |
row_ready(i, row) |
123 |
sys.stderr.write('Processed '+str(i-start+1)+' input rows\n') |
|
123 |
|
|
124 |
row_ct = i-start+1 |
|
125 |
ex_tracker.add_iters(row_ct) |
|
126 |
sys.stderr.write('Processed '+str(row_ct)+' input rows\n') |
|
124 | 127 |
|
125 | 128 |
def map_rows(get_value, rows): |
126 | 129 |
'''Maps input rows |
Also available in: Unified diff
bin/map: Use new ExPercentTracker to print error rate (% of # rows) when program exits