Guest User

PyBall profiling

a guest
Mar 6th, 2012
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 17.81 KB | None | 0 0
  1. Tue Mar  6 16:07:47 2012    profile.txt
  2.  
  3.          23951471 function calls in 48.185 seconds
  4.  
  5.    Ordered by: internal time
  6.  
  7.    ncalls  tottime  percall  cumtime  percall filename:lineno(function)
  8.       105   10.909    0.104   16.199    0.154 pyball_test.py:279(construct)
  9.      6913    7.507    0.001   15.329    0.002 pyball_test.py:543(circsAtTargets)
  10.      7490    3.660    0.000    3.660    0.000 {built-in method flip}
  11.     62831    3.199    0.000    3.199    0.000 {method 'size' of 'pygame.font.Font' objects}
  12.     62985    2.680    0.000    2.680    0.000 {method 'render' of 'pygame.font.Font' objects}
  13.   4564550    2.075    0.000    2.075    0.000 {built-in method pow}
  14.   1515800    2.054    0.000    2.054    0.000 {method 'set_at' of 'pygame.Surface' objects}
  15.   2935530    1.577    0.000    1.577    0.000 pyball_test.py:51(toList)
  16.   1423421    1.505    0.000    1.974    0.000 pyball_test.py:606(cursorWithinBounds)
  17.    252042    1.292    0.000    1.292    0.000 {built-in method aaline}
  18.     14985    1.213    0.000    1.213    0.000 {method 'fill' of 'pygame.Surface' objects}
  19.     62985    1.064    0.000    7.355    0.000 pyball_test.py:1581(renderText)
  20.   3641050    0.950    0.000    0.950    0.000 {built-in method min}
  21.    175461    0.889    0.000    0.889    0.000 {method 'blit' of 'pygame.Surface' objects}
  22.   1399262    0.797    0.000    0.797    0.000 pyball_test.py:831(degToRad)
  23.    690720    0.612    0.000    0.612    0.000 pyball_test.py:256(getData)
  24.    252841    0.593    0.000    0.593    0.000 {built-in method circle}
  25.       370    0.478    0.001    0.478    0.001 {method 'acquire' of '_thread.lock' objects}
  26.   1423421    0.468    0.000    0.468    0.000 {built-in method get_pos}
  27.         1    0.411    0.411    0.413    0.413 {built-in method set_mode}
  28.    716829    0.382    0.000    0.914    0.000 pyball_test.py:528(drawCircle)
  29.    774189    0.377    0.000    1.669    0.000 pyball_test.py:523(drawLine)
  30.         1    0.307    0.307    0.307    0.307 {built-in method quit}
  31.     92704    0.275    0.000    0.275    0.000 pyball_test.py:1643(getPadMidpoint)
  32.      7490    0.258    0.000    2.826    0.000 pyball_test.py:1022(drawObjects)
  33.    699631    0.252    0.000    0.252    0.000 {built-in method cos}
  34.   1517900    0.191    0.000    0.191    0.000 {built-in method abs}
  35.    699631    0.185    0.000    0.185    0.000 {built-in method sin}
  36.         1    0.155    0.155   48.499   48.499 pyball_test.py:1728(main)
  37.      7490    0.116    0.000    0.991    0.000 pyball_test.py:1061(drawWeightInfo)
  38.     16371    0.102    0.000    0.102    0.000 {built-in method rect}
  39.    387455    0.096    0.000    0.096    0.000 {method 'lower' of 'str' objects}
  40.      5228    0.094    0.000    0.223    0.000 pyball_test.py:1393(collisionHandling)
  41.     37450    0.079    0.000    0.105    0.000 pyball_test.py:343(adjustColour)
  42.      7490    0.074    0.000    0.074    0.000 {built-in method get}
  43.        15    0.073    0.005    0.073    0.005 {built-in method load_extended}
  44.        13    0.070    0.005    0.071    0.005 {built-in method open}
  45.     45067    0.070    0.000    0.130    0.000 pyball_test.py:1655(hoverHandler)
  46.      7490    0.066    0.000    0.199    0.000 pyball_test.py:1140(drawPauseButton)
  47.         8    0.055    0.007    0.055    0.007 {method 'read' of '_io.TextIOWrapper' objects}
  48.         1    0.054    0.054    0.054    0.054 pyball_test.py:1610(initialiseMusic)
  49.      5228    0.052    0.000    0.053    0.000 pyball_test.py:1548(insidePad)
  50.      7490    0.052    0.000    0.191    0.000 pyball_test.py:1667(SettingOptionsHandler)
  51.      7490    0.051    0.000    0.051    0.000 pyball_test.py:155(getColour)
  52.      5228    0.051    0.000    0.145    0.000 pyball_test.py:614(adaptiveAI)
  53.     14980    0.050    0.000    0.127    0.000 pyball_test.py:1165(drawLetterButton)
  54.      7491    0.041    0.000    0.041    0.000 {method 'set_volume' of 'Channel' objects}
  55.      7490    0.041    0.000    0.150    0.000 pyball_test.py:1116(drawLauncher)
  56.      5228    0.039    0.000    0.910    0.000 pyball_test.py:102(move)
  57.     37450    0.034    0.000    0.034    0.000 pyball_test.py:352(adjustSize)
  58.     45045    0.030    0.000    0.160    0.000 pyball_test.py:1660(setHover)
  59.     44940    0.029    0.000    0.029    0.000 {method 'set_alpha' of 'pygame.Surface' objects}
  60.     10454    0.029    0.000    0.057    0.000 pyball_test.py:130(getVelocityComponents)
  61.      7490    0.029    0.000    0.069    0.000 pyball_test.py:198(adjustVolume)
  62.     13828    0.028    0.000    0.028    0.000 pyball_test.py:67(move)
  63.       185    0.026    0.000    0.026    0.000 {method 'send' of '_socket.socket' objects}
  64.      7490    0.024    0.000    0.089    0.000 pyball_test.py:1129(drawSpeaker)
  65.      7490    0.024    0.000    0.184    0.000 pyball_test.py:1673(passiveMouseHandler)
  66.      5228    0.022    0.000    0.931    0.000 pyball_test.py:1343(handleMotion)
  67.      7490    0.020    0.000    0.060    0.000 pyball_test.py:1189(drawFastForwardButton)
  68.      7490    0.019    0.000    0.057    0.000 pyball_test.py:1206(drawGearButton)
  69.      7490    0.019    0.000    0.027    0.000 pyball_test.py:164(getRadius)
  70.        28    0.018    0.001    0.279    0.010 pyball_test.py:641(findBestApproximation)
  71.     41820    0.018    0.000    0.018    0.000 pyball_test.py:1380(objectWithinBounds)
  72.        15    0.018    0.001    0.018    0.001 {method 'convert_alpha' of 'pygame.Surface' objects}
  73.      1272    0.011    0.000    0.015    0.000 sysfont.py:37(<listcomp>)
  74.      7490    0.009    0.000    0.016    0.000 pyball_test.py:204(setCoverTransparency)
  75.        22    0.008    0.000    0.008    0.000 {method 'copy' of 'pygame.Surface' objects}
  76.      6931    0.008    0.000    0.008    0.000 pyball_test.py:731(getCollisionData)
  77.      4830    0.007    0.000    0.015    0.000 pyball_test.py:1639(getPointDistance)
  78.     33181    0.006    0.000    0.006    0.000 {built-in method len}
  79.      5805    0.006    0.000    0.006    0.000 pyball_test.py:152(coolDown)
  80.       563    0.006    0.000    0.006    0.000 {built-in method EnumValue}
  81.         1    0.006    0.006    0.031    0.031 sysfont.py:196(initsysfonts_win32)
  82.      6913    0.005    0.000    0.017    0.000 pyball_test.py:533(drawRect)
  83.       185    0.005    0.000    0.489    0.003 rpc.py:295(_getresponse)
  84.         8    0.004    0.001    0.007    0.001 pyball_test.py:867(parseMemoryData)
  85.         1    0.004    0.004    0.036    0.036 pyball_test.py:927(initialiseFonts)
  86.      1585    0.003    0.000    0.003    0.000 {method 'split' of 'str' objects}
  87.       525    0.003    0.000    0.006    0.000 pyball_test.py:689(calculateDivergence)
  88.       185    0.003    0.000    0.494    0.003 rpc.py:238(asyncreturn)
  89.       585    0.003    0.000    0.047    0.000 sysfont.py:600(match_font)
  90.      1272    0.003    0.000    0.018    0.000 sysfont.py:36(_simplename)
  91.       185    0.002    0.000    0.033    0.000 rpc.py:321(putmessage)
  92.      6242    0.002    0.000    0.002    0.000 {built-in method isinstance}
  93.     14223    0.002    0.000    0.002    0.000 {method 'isalnum' of 'str' objects}
  94.        92    0.002    0.000    0.539    0.006 {built-in method print}
  95.       576    0.002    0.000    0.011    0.000 ntpath.py:108(join)
  96.       185    0.002    0.000    0.002    0.000 {built-in method select}
  97.      5775    0.002    0.000    0.002    0.000 {built-in method max}
  98.       185    0.002    0.000    0.483    0.003 threading.py:227(wait)
  99.       185    0.002    0.000    0.002    0.000 threading.py:89(RLock)
  100.       185    0.002    0.000    0.040    0.000 rpc.py:218(asynccall)
  101.       185    0.002    0.000    0.002    0.000 {built-in method dumps}
  102.       586    0.002    0.000    0.006    0.000 ntpath.py:188(splitdrive)
  103.      1050    0.002    0.000    0.002    0.000 pyball_test.py:725(getAngleDifference)
  104.      4832    0.001    0.000    0.001    0.000 {built-in method sqrt}
  105.       185    0.001    0.000    0.001    0.000 {built-in method allocate_lock}
  106.         1    0.001    0.001    0.001    0.001 compat.py:21(get_BytesIO)
  107.         9    0.001    0.000    0.001    0.000 {built-in method smoothscale}
  108.       185    0.001    0.000    0.003    0.000 threading.py:178(__init__)
  109.      4709    0.001    0.000    0.511    0.000 pyball_test.py:538(printData)
  110.       586    0.001    0.000    0.003    0.000 ntpath.py:84(normcase)
  111.         1    0.001    0.001    0.002    0.002 pkgdata.py:18(<module>)
  112.       185    0.001    0.000    0.535    0.003 rpc.py:208(remotecall)
  113.       576    0.001    0.000    0.007    0.000 ntpath.py:100(isabs)
  114.      2191    0.001    0.000    0.001    0.000 {method 'join' of 'str' objects}
  115.      1354    0.001    0.000    0.001    0.000 {method 'get' of 'dict' objects}
  116.      1255    0.001    0.000    0.001    0.000 {method 'replace' of 'str' objects}
  117.       184    0.001    0.000    0.013    0.000 rpc.py:546(__getattr__)
  118.      1753    0.001    0.000    0.002    0.000 ntpath.py:44(_get_sep)
  119.       336    0.001    0.000    0.001    0.000 pyball_test.py:246(__init__)
  120.       185    0.001    0.000    0.491    0.003 rpc.py:279(getresponse)
  121.       185    0.001    0.000    0.001    0.000 {method '_acquire_restore' of '_thread.RLock' objects}
  122.      1295    0.001    0.000    0.001    0.000 rpc.py:149(debug)
  123.        21    0.001    0.000   16.271    0.775 pyball_test.py:1223(drawSettingsMenu)
  124.      1162    0.001    0.000    0.001    0.000 ntpath.py:68(_get_colon)
  125.         2    0.001    0.000    0.133    0.066 pyball_test.py:858(loadPadMemories)
  126.       370    0.001    0.000    0.001    0.000 threading.py:1016(current_thread)
  127.       550    0.001    0.000    0.001    0.000 sysfont.py:41(_addfont)
  128.       185    0.001    0.000    0.001    0.000 rpc.py:287(_proxify)
  129.      1157    0.001    0.000    0.001    0.000 ntpath.py:56(_get_bothseps)
  130.       185    0.001    0.000    0.001    0.000 {method 'acquire' of '_thread.RLock' objects}
  131.        28    0.000    0.000    0.102    0.004 pyball_test.py:631(printMemory)
  132.       185    0.000    0.000    0.004    0.000 threading.py:173(Condition)
  133.      1032    0.000    0.000    0.000    0.000 {built-in method sum}
  134.       184    0.000    0.000    0.524    0.003 rpc.py:592(__call__)
  135.       185    0.000    0.000    0.000    0.000 {method '_release_save' of '_thread.RLock' objects}
  136.         7    0.000    0.000    0.422    0.060 pyball_test.py:506(updatePadTargets)
  137.       184    0.000    0.000    0.000    0.000 rpc.py:587(__init__)
  138.       266    0.000    0.000    0.000    0.000 {method 'pop' of 'list' objects}
  139.       586    0.000    0.000    0.000    0.000 ntpath.py:38(_get_empty)
  140.         1    0.000    0.000    0.050    0.050 pyball_test.py:909(getFastForwardCover)
  141.       591    0.000    0.000    0.000    0.000 ntpath.py:50(_get_altsep)
  142.       185    0.000    0.000    0.000    0.000 {method 'release' of '_thread.RLock' objects}
  143.       394    0.000    0.000    0.000    0.000 {method 'remove' of 'list' objects}
  144.       185    0.000    0.000    0.000    0.000 rpc.py:317(newseq)
  145.         3    0.000    0.000    0.000    0.000 {built-in method OpenKey}
  146.       185    0.000    0.000    0.000    0.000 {built-in method pack}
  147.       812    0.000    0.000    0.000    0.000 {method 'append' of 'list' objects}
  148.       185    0.000    0.000    0.000    0.000 threading.py:46(__init__)
  149.       185    0.000    0.000    0.000    0.000 threading.py:51(_note)
  150.         1    0.000    0.000    0.000    0.000 {built-in method set_caption}
  151.       370    0.000    0.000    0.000    0.000 {built-in method get_ident}
  152.         8    0.000    0.000    0.000    0.000 {built-in method charmap_decode}
  153.        72    0.000    0.000    0.003    0.000 pyball_test.py:518(drawText)
  154.       185    0.000    0.000    0.000    0.000 rpc.py:244(decoderesponse)
  155.         5    0.000    0.000    0.413    0.083 pyball_test.py:1565(genNewBall)
  156.         1    0.000    0.000    0.002    0.002 sysfont.py:221(<listcomp>)
  157.        22    0.000    0.000    0.008    0.000 pyball_test.py:1236(ResetSettingsMenu)
  158.       105    0.000    0.000    0.000    0.000 {method 'lock' of 'pygame.Surface' objects}
  159.         1    0.000    0.000   48.499   48.499 {built-in method exec}
  160.         2    0.000    0.000    0.009    0.004 pyball_test.py:897(getLetterIcon)
  161.         1    0.000    0.000    0.009    0.009 pyball_test.py:742(generateWeights)
  162.         8    0.000    0.000    0.000    0.000 locale.py:552(getpreferredencoding)
  163.         1    0.000    0.000    0.148    0.148 pyball_test.py:938(initialiseSession)
  164.         5    0.000    0.000    0.000    0.000 pyball_test.py:264(__init__)
  165.       105    0.000    0.000    0.000    0.000 {method 'unlock' of 'pygame.Surface' objects}
  166.         5    0.000    0.000    0.000    0.000 ntpath.py:529(normpath)
  167.        12    0.000    0.000    0.000    0.000 pyball_test.py:839(crossColours)
  168.       185    0.000    0.000    0.000    0.000 {method '_is_owned' of '_thread.RLock' objects}
  169.         9    0.000    0.000    0.001    0.000 pyball_test.py:923(scaleImage)
  170.         1    0.000    0.000    0.009    0.009 pyball_test.py:919(getSettingsMenu)
  171.         5    0.000    0.000    0.017    0.003 pyball_test.py:891(getSpeakerIcon)
  172.         8    0.000    0.000    0.000    0.000 {built-in method _getdefaultlocale}
  173.       201    0.000    0.000    0.000    0.000 {method 'get_height' of 'pygame.Surface' objects}
  174.         5    0.000    0.000    0.001    0.000 pkgdata.py:34(getResource)
  175.         4    0.000    0.000    0.106    0.026 pyball_test.py:81(losePoint)
  176.         4    0.000    0.000    0.000    0.000 pyball_test.py:234(addSurface)
  177.         5    0.000    0.000    0.000    0.000 ntpath.py:273(split)
  178.        10    0.000    0.000    0.000    0.000 pyball_test.py:1269(keyPressed)
  179.         1    0.000    0.000    0.000    0.000 pyball_test.py:751(selectBestWeights)
  180.         2    0.000    0.000    0.133    0.066 pyball_test.py:1693(activeMouseHandler)
  181.         1    0.000    0.000    0.000    0.000 {method 'update' of 'dict' objects}
  182.         3    0.000    0.000    0.000    0.000 {built-in method rotate}
  183.         4    0.000    0.000    0.003    0.001 pyball_test.py:887(getPadFromFile)
  184.         7    0.000    0.000    0.422    0.060 pyball_test.py:1516(updateCollisionData)
  185.         1    0.000    0.000    0.031    0.031 sysfont.py:518(initsysfonts)
  186.         8    0.000    0.000    0.000    0.000 cp1252.py:22(decode)
  187.         6    0.000    0.000    0.000    0.000 random.py:217(_randbelow)
  188.         1    0.000    0.000    0.000    0.000 pyball_test.py:992(initialiseSettings)
  189.         2    0.000    0.000    0.133    0.066 pyball_test.py:378(switch)
  190.         6    0.000    0.000    0.000    0.000 pyball_test.py:1527(angleFromComponents)
  191.         6    0.000    0.000    0.000    0.000 random.py:166(randrange)
  192.         9    0.000    0.000    0.000    0.000 pyball_test.py:1321(keyReleased)
  193.        30    0.000    0.000    0.000    0.000 ntpath.py:62(_get_dot)
  194.        58    0.000    0.000    0.000    0.000 {method 'get_width' of 'pygame.Surface' objects}
  195.         9    0.000    0.000    0.000    0.000 {method 'getrandbits' of '_random.Random' objects}
  196.         1    0.000    0.000    0.029    0.029 pyball_test.py:822(beginNewGeneration)
  197.         1    0.000    0.000    0.000    0.000 {built-in method QueryInfoKey}
  198.         1    0.000    0.000    0.000    0.000 sysfont.py:487(create_aliases)
  199.        10    0.000    0.000    0.000    0.000 {built-in method getattr}
  200.         4    0.000    0.000    0.000    0.000 pyball_test.py:56(__init__)
  201.         5    0.000    0.000    0.413    0.083 pyball_test.py:149(launchBall)
  202.        25    0.000    0.000    0.000    0.000 {method 'random' of '_random.Random' objects}
  203.        12    0.000    0.000    0.000    0.000 pyball_test.py:46(__init__)
  204.         6    0.000    0.000    0.000    0.000 {built-in method atan}
  205.         5    0.000    0.000    0.000    0.000 pyball_test.py:95(__init__)
  206.         1    0.000    0.000    0.004    0.004 pyball_test.py:913(getGearIcon)
  207.         1    0.000    0.000    0.000    0.000 {method 'play' of 'Channel' objects}
  208.         1    0.000    0.000    0.000    0.000 pyball_test.py:189(addChannel)
  209.         1    0.000    0.000    0.001    0.001 pyball_test.py:903(getFastForwardIcon)
  210.         1    0.000    0.000   48.499   48.499 <string>:1(<module>)
  211.         5    0.000    0.000    0.000    0.000 ntpath.py:314(dirname)
  212.         1    0.000    0.000    0.000    0.000 pyball_test.py:182(addSurface)
  213.         6    0.000    0.000    0.000    0.000 pyball_test.py:835(radToDeg)
  214.        10    0.000    0.000    0.000    0.000 {method 'startswith' of 'str' objects}
  215.         8    0.000    0.000    0.000    0.000 codecs.py:238(__init__)
  216.         2    0.000    0.000    0.000    0.000 os.py:449(__getitem__)
  217.         2    0.000    0.000    0.000    0.000 os.py:507(encodekey)
  218.         1    0.000    0.000    0.000    0.000 pyball_test.py:141(__init__)
  219.         4    0.000    0.000    0.000    0.000 pyball_test.py:1385(angleBetweenPoints)
  220.         1    0.000    0.000    0.000    0.000 pyball_test.py:773(produceChildren)
  221.         5    0.000    0.000    0.000    0.000 {method 'lstrip' of 'str' objects}
  222.         6    0.000    0.000    0.000    0.000 {method 'bit_length' of 'int' objects}
  223.         1    0.000    0.000    0.011    0.011 rpc.py:564(__getmethods)
  224.         6    0.000    0.000    0.000    0.000 pyball_test.py:241(switch)
  225.         2    0.000    0.000    0.000    0.000 os.py:501(check_str)
  226.         2    0.000    0.000    0.000    0.000 pyball_test.py:1544(velocityFromComponents)
  227.         1    0.000    0.000    0.000    0.000 _abcoll.py:363(__contains__)
  228.         5    0.000    0.000    0.000    0.000 ntpath.py:74(_get_special)
  229.         5    0.000    0.000    0.000    0.000 pkgdata.py:29(resource_exists)
  230.         1    0.000    0.000    0.000    0.000 {built-in method Channel}
  231.         2    0.000    0.000    0.000    0.000 pyball_test.py:221(switch)
  232.         1    0.000    0.000    0.000    0.000 {built-in method init}
  233.         2    0.000    0.000    0.000    0.000 {method 'upper' of 'str' objects}
  234.        10    0.000    0.000    0.000    0.000 {method 'items' of 'dict' objects}
  235.         1    0.000    0.000    0.000    0.000 {method 'disable' of '_lsprof.Profiler' objects}
  236.         1    0.000    0.000    0.000    0.000 {method 'extend' of 'list' objects}
Advertisement
Add Comment
Please, Sign In to add comment