Revision 988
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/profiling.py | ||
---|---|---|
37 | 37 |
def msg(self): |
38 | 38 |
msg = Profiler.msg(self) |
39 | 39 |
if self.iter_ct != None: |
40 |
msg += ('/'+str(self.iter_ct)+' '+self.iter_text+'(s)'+' = '
|
|
40 |
msg += ('/'+util.int2str(self.iter_ct)+' '+self.iter_text+'(s) = '
|
|
41 | 41 |
+util.to_si(float(self.total.total_seconds())/self.iter_ct) |
42 | 42 |
+'s/'+self.iter_text) |
43 | 43 |
return msg |
lib/exc.py | ||
---|---|---|
57 | 57 |
|
58 | 58 |
def msg(self): |
59 | 59 |
msg = ExTracker.msg(self) |
60 |
if self.iter_ct != None: msg += ('/'+str(self.iter_ct)+' ' |
|
61 |
+self.iter_text+'(s)'+' = '
|
|
60 |
if self.iter_ct != None: msg += ('/'+util.int2str(self.iter_ct)+' '
|
|
61 |
+self.iter_text+'(s) = ' |
|
62 | 62 |
+util.to_percent(float(self.e_ct)/self.iter_ct)) |
63 | 63 |
return msg |
Also available in: Unified diff
exc.py, profiling.py: Use util.int2str() to print # iters with thousands separators