Interpreting python profiler results

Discussion in 'Python' started by Will Ware, Mar 8, 2006.

  1. Will Ware

    Will Ware Guest

    I'm working on a piece of software that uses PyQt and PyOpenGL for
    drawing acceleration. While profiling it to find opportunities to speed
    things up, I got this from the profiler:

    ncalls tottime percall cumtime percall filename:lineno(function)
    12108/12084 55.390 0.005 55.390 0.005 :0(getattr)
    2934 0.430 0.000 1.240 0.000
    files_mmp.py:344(_read_atom)
    1 0.310 0.310 59.240 59.240 :0(exec_loop)
    2934 0.210 0.000 0.310 0.000
    chem.py:1774(best_atomtype_for_numbonds)
    8737 0.150 0.000 0.190 0.000 :0(map)
    2944 0.150 0.000 0.450 0.000 chem.py:288(__init__)
    ....more.....

    I assume ":0(getattr)" means a getattr function in either PyQt or
    PyOpenGL. I grepped the sources of both looking for getattr, and it
    doesn't appear in PyQt but appears frequently in PyOpenGL. Does anybody
    know if I am correct in my conclusion that most of the program's time
    is being spent in some getattr function in PyOpenGL?

    Thanks
    Will Ware
     
    Will Ware, Mar 8, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris

    Bizarre profiler results

    Chris, Aug 1, 2003, in forum: Java
    Replies:
    3
    Views:
    510
    Roedy Green
    Aug 1, 2003
  2. Monique Y. Mudama
    Replies:
    1
    Views:
    602
    Monique Y. Mudama
    Jun 28, 2005
  3. Rodrigo Daunaravicius

    interpreting hotshot results

    Rodrigo Daunaravicius, Jun 16, 2004, in forum: Python
    Replies:
    0
    Views:
    470
    Rodrigo Daunaravicius
    Jun 16, 2004
  4. Leif K-Brooks
    Replies:
    2
    Views:
    818
    Fuzzyman
    Jan 21, 2006
  5. lovecreatesbeauty
    Replies:
    8
    Views:
    2,006
    Old Wolf
    Sep 12, 2005
  6. Chris Carlen
    Replies:
    1
    Views:
    765
    Gabriel Genellina
    Sep 18, 2007
  7. potatosoftware
    Replies:
    0
    Views:
    817
    potatosoftware
    Nov 4, 2009
  8. Juan Alvarez

    Help interpreting benchmark results

    Juan Alvarez, Feb 24, 2009, in forum: Ruby
    Replies:
    3
    Views:
    330
    Sandor Szücs
    Feb 25, 2009
Loading...