Advertisement
Guest User

Profiling original python code

a guest
Apr 4th, 2010
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.54 KB | None | 0 0
  1. bana@bana-laptop:~/python/cython_play/gmm$ python -m pstats
  2. Welcome to the profile statistics browser.
  3. % read prof_orig.dat
  4. prof_orig.dat% sort cumulative
  5. prof_orig.dat% strip
  6. prof_orig.dat% stats 15
  7. Sun Apr  4 20:44:49 2010    prof_orig.dat
  8.  
  9.          11399892 function calls in 68.930 CPU seconds
  10.  
  11.    Random listing order was used
  12.    List reduced from 42 to 15 due to restriction <15>
  13.  
  14.    ncalls  tottime  percall  cumtime  percall filename:lineno(function)
  15.    199998    1.183    0.000    1.786    0.000 linalg.py:104(_assertRank2)
  16.    499995    0.827    0.000    0.827    0.000 {getattr}
  17.    399997    1.828    0.000    1.828    0.000 {numpy.core.multiarray.zeros}
  18.     99999    0.722    0.000    3.932    0.000 {map}
  19.    199998    1.718    0.000    3.210    0.000 shape_base.py:300(atleast_2d)
  20.    399996    0.849    0.000    0.849    0.000 {method 'transpose' of 'numpy.ndarray' objects}
  21.     99999    0.622    0.000    5.051    0.000 shape_base.py:412(vstack)
  22.    599994    2.020    0.000    3.143    0.000 linalg.py:36(isComplexType)
  23.         1    0.000    0.000   68.930   68.930 <string>:1(<module>)
  24.    399996    1.351    0.000    1.351    0.000 {numpy.core.multiarray._fastCopyAndTranspose}
  25.    399996    0.653    0.000    0.653    0.000 {method 'get' of 'dict' objects}
  26.    499995    1.897    0.000    3.398    0.000 numeric.py:180(asarray)
  27.    899991    6.026    0.000    6.026    0.000 {numpy.core.multiarray.array}
  28.     99999    0.322    0.000    0.322    0.000 {numpy.core.multiarray.empty}
  29.    199998    0.352    0.000    0.352    0.000 {min}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement