Message242277
| Author |
Romuald |
| Recipients |
Romuald |
| Date |
2015年04月30日.16:27:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1430411271.93.0.999844602202.issue24084@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When running pstats with functions that take less than 0.5 millisecond (per call for example), the value shown is '0.000, which isn't really helpful.
This patch aims to show the value in microseconds instead of seconds for values that would otherwise be displayed as '0.000'
(the display may have to be tweaked for non-utf8 users, as the μ character is used)
Example output:
ncalls tottime percall cumtime percall filename:lineno(function)
9827 0.007 7μs 0.007 7μs {method 'get' of 'dict' objects}
3427 0.009 25μs 0.017 49μs {map}
10701 0.006 5μs 0.006 5μs {method 'lower' of 'str' objects}
31410 0.045 14μs 0.045 14μs {method 'split' of 'str' objects}
10023 0.006 6μs 0.006 6μs {_weakref.proxy}
31801 0.009 2μs 0.009 2μs {len}
3892 0.003 7μs 0.003 7μs {method 'extend' of 'list' objects}
1397 0.001 8μs 0.001 8μs {method 'replace' of 'str' objects}
10488 0.010 9μs 0.010 9μs {method 'string_literal' of '_mysql.connection' objects}
10702 2.620 2447μs 2.620 2447μs {method 'readline' of 'file' objects}
10023 0.004 3μs 0.004 3μs {method 'info' of '_mysql.connection' objects}
10023 0.005 5μs 0.005 5μs {method 'insert_id' of '_mysql.connection' objects}
14327 0.022 15μs 0.022 15μs {method 'rstrip' of 'str' objects} |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年04月30日 16:27:51 | Romuald | set | recipients:
+ Romuald |
| 2015年04月30日 16:27:51 | Romuald | set | messageid: <1430411271.93.0.999844602202.issue24084@psf.upfronthosting.co.za> |
| 2015年04月30日 16:27:51 | Romuald | link | issue24084 messages |
| 2015年04月30日 16:27:51 | Romuald | create |
|