[Twisted-Python] twisted profiling help
Yun Mao
maoy at cis.upenn.edu
Thu Jun 2 15:17:24 EDT 2005
Part of my profiling result of a high speed transfer test is attached.
What might that <string>:1(connect_ex) be? I only created 2 or 3 TCP
connections, but there are 24655 calls.
Thanks!
Yun
608904 function calls (608583 primitive calls) in 52.314 CPU
seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
24655 1.144 0.000 1.144 0.000 <string>:1(connect_ex)
39185 1.247 0.000 3.853 0.000 abstract.py:159(write)
39189 0.365 0.000 2.432 0.000
abstract.py:239(startWriting)
2447 0.026 0.000 0.107 0.000
abstract.py:292(resumeProducing)
2459 0.018 0.000 0.141 0.000
abstract.py:296(pauseProducing)
2459 1.496 0.001 5.195 0.002 abstract.py:88(doWrite)
39210 5.207 0.000 5.785 0.000 base.py:432(callLater)
39210 0.578 0.000 0.578 0.000 base.py:45(__init__)
39181 0.223 0.000 0.223 0.000
base.py:464(_cancelCallLater)
9880 0.266 0.000 0.367 0.000
base.py:482(_insertNewDelayedCalls)
4940 0.094 0.000 0.129 0.000 base.py:491(timeout)
39181 0.535 0.000 0.758 0.000 base.py:63(cancel)
4927 0.134 0.000 37.772 0.008
context.py:26(callWithContext)
39176 3.473 0.000 12.772 0.000 expect.py:97(writeStruct)
39177 5.446 0.000 5.446 0.000 myutil.py:34(dumps)
39174 1.678 0.000 22.154 0.001 protocol.py:37(write)
39175 1.164 0.000 7.706 0.000
protocol.py:96(scheduleAliveMsg)
39189 2.067 0.000 2.067 0.000
selectreactor.py:156(addWriter)
4940 12.490 0.003 51.625 0.010
selectreactor.py:82(doSelect)
39174 0.156 0.000 0.156 0.000 sndrcv.py:110(preWrite)
2450 4.290 0.002 27.357 0.011 sndrcv.py:116(write)
2450 0.743 0.000 0.743 0.000 sndrcv.py:389(addData)
2459 0.033 0.000 0.174 0.000 sndrcv.py:83(pauseProducing)
2447 0.021 0.000 0.128 0.000
sndrcv.py:88(resumeProducing)
2465 3.371 0.001 32.239 0.013 tcp.py:334(doRead)
2459 3.406 0.001 3.406 0.001 tcp.py:353(writeSomeData)
More information about the Twisted-Python
mailing list