[Twisted-Python] Instrumenting Reactors

Laurens Van Houtven _ at lvh.cc
Wed Apr 6 04:35:37 MDT 2011


Hi!


No guarantee it's an optimal solution, but when I wanted to inspect a
running process (which sounds like what you're doing), I had a pretty good
time with manhole. (If you're not familiar with that: it's in Twisted Conch,
and it's basically just a way to SSH in to a running box and get a REPL).

In that REPL, you can of course do things like inspect the running reactor
:-)


cheers
lvh

On Wed, Apr 6, 2011 at 11:55 AM, Paul Thomas
<spongelavapaul at googlemail.com>wrote:

> I have a reactor which is getting busier over time and I'd like to find out
> where the cycles are going. Using the profiler isn't really practical on a
> server running for days, so I'd like to instrument the reactor to show me
> which I/O events are taking the longest to deal with.
>
> Should I just hack into the reactor somewhere? Or is there something
> sitting in a library I haven't seen that will help with this?
>
> Paul.
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>



-- 
cheers
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20110406/c6a96c46/attachment.html>


More information about the Twisted-Python mailing list