Last active
August 29, 2015 14:08
-
-
Save redhog/f1a62aa6fa105fa5b1de to your computer and use it in GitHub Desktop.
stats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> import pstats | |
| >>> s = pstats.Stats("stats") | |
| >>> s.sort_stats("cumtime") | |
| <pstats.Stats instance at 0x227e758> | |
| >>> s.print_stats(20) | |
| Fri Nov 7 19:46:06 2014 stats | |
| 187322 function calls in 93.877 seconds | |
| Ordered by: cumulative time | |
| List reduced from 21 to 20 due to restriction <20> | |
| ncalls tottime percall cumtime percall filename:lineno(function) | |
| 1 0.000 0.000 93.877 93.877 <string>:1(<module>) | |
| 1 0.526 0.526 93.876 93.876 SETI.py:157(update) | |
| 101 78.699 0.779 93.341 0.924 /home/redhog/Projects/beta/koffol/SETI/tools.py:127(col_single) | |
| 12454 0.102 0.000 8.677 0.001 /home/redhog/Projects/beta/koffol/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py:1372(nonzero) | |
| 12454 8.575 0.001 8.575 0.001 {method 'nonzero' of 'numpy.ndarray' objects} | |
| 37362 3.564 0.000 3.564 0.000 {numpy.core.multiarray.where} | |
| 24909 0.912 0.000 0.912 0.000 {numpy.core.multiarray.zeros} | |
| 12454 0.145 0.000 0.789 0.000 /home/redhog/Projects/beta/koffol/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py:2134(amin) | |
| 12454 0.042 0.000 0.645 0.000 /home/redhog/Projects/beta/koffol/local/lib/python2.7/site-packages/numpy/core/_methods.py:28(_amin) | |
| 12555 0.610 0.000 0.610 0.000 {method 'reduce' of 'numpy.ufunc' objects} | |
| 12454 0.511 0.000 0.511 0.000 {abs} | |
| 12454 0.083 0.000 0.083 0.000 {math.cos} | |
| 24908 0.071 0.000 0.071 0.000 /home/redhog/Projects/beta/koffol/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py:2506(size) | |
| 12454 0.035 0.000 0.035 0.000 {math.sin} | |
| 101 0.001 0.000 0.009 0.000 /home/redhog/Projects/beta/koffol/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py:1623(sum) | |
| 101 0.000 0.000 0.008 0.000 /home/redhog/Projects/beta/koffol/local/lib/python2.7/site-packages/numpy/core/_methods.py:31(_sum) | |
| 101 0.001 0.000 0.001 0.000 {isinstance} | |
| 1 0.000 0.000 0.000 0.000 {open} | |
| 1 0.000 0.000 0.000 0.000 {time.time} | |
| 1 0.000 0.000 0.000 0.000 {method 'close' of 'file' objects} | |
| <pstats.Stats instance at 0x227e758> | |
| >>> | |
| >>> s.print_callers("/home/redhog/Projects/beta/koffol/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py:1372") | |
| Ordered by: cumulative time | |
| List reduced from 21 to 1 due to restriction <'/home/redhog/Projects/beta/koffol/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py:1372'> | |
| Function was called by... | |
| ncalls tottime cumtime | |
| /home/redhog/Projects/beta/koffol/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py:1372(nonzero) <- 12454 0.102 8.677 /home/redhog/Projects/beta/koffol/SETI/tools.py:127(col_single) | |
| <pstats.Stats instance at 0x227e758> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment