[Twisted-Python] deferred graph?

2012-06-28 Thread Dan Stromberg
Hi. I'm a Twisted neophyte, but I've been using Python a long time. My question: Is there a way of producing a deferred graph in a Python program at a given point in time? Perhaps something based on graphviz and objgraph.py? We're able to detect when we're having the problem, we just don't (yet

Re: [Twisted-Python] deferred graph?

2012-07-02 Thread Dan Stromberg
On Thu, Jun 28, 2012 at 9:40 PM, Dan Stromberg wrote: > > Hi. > > I'm a Twisted neophyte, but I've been using Python a long time. > > My question: > Is there a way of producing a deferred graph in a Python program at a > given point in time? Perhaps something

Re: [Twisted-Python] deferred graph?

2012-07-16 Thread Dan Stromberg
I'm continuing to have some stuck deferreds - deferredlists probably. I had that graphviz/twisted graphing thing working for some test code, but upon applying it to some deferreds that're getting stuck in some production code, I didn't get the same pleasing output - not entirely surprising. Part o

Re: [Twisted-Python] deferred graph?

2012-07-16 Thread Dan Stromberg
On Mon, Jul 16, 2012 at 9:54 PM, Andrew Bennetts wrote: > Dan Stromberg wrote: > […] > > Can anyone think of other ways of getting to the bottom of this? Perhaps > > some field in a deferred or deferredList I can introspect to get better > > specifics? > > > >

Re: [Twisted-Python] deferred graph?

2012-07-16 Thread Dan Stromberg
On Mon, Jul 16, 2012 at 11:20 PM, Andrew Bennetts wrote: > Dan Stromberg wrote: > […] > > I'm playing with twisted.internet.defer.setDebugging now. > > > > Is there a corresponding function that can be used to produce its report? > > If I use it in a program wit

Re: [Twisted-Python] deferred graph?

2012-07-17 Thread Dan Stromberg
On Mon, Jul 16, 2012 at 11:45 PM, Dan Stromberg wrote: > > On Mon, Jul 16, 2012 at 11:20 PM, Andrew Bennetts > wrote: > >> Dan Stromberg wrote: >> […] >> > I'm playing with twisted.internet.defer.setDebugging now. >> > >> > Is there

Re: [Twisted-Python] deferred graph?

2012-07-17 Thread Dan Stromberg
On Tue, Jul 17, 2012 at 12:53 PM, wrote: > On 03:40 pm, drsali...@gmail.com wrote: > >> > >>Strangely, this doesn't give the report until after the sleep > >>finishes... ? > > What's strange about that? "time.sleep(10)" doesn't mean "immediately > print out debug information". > Well, if you r

Re: [Twisted-Python] deferred graph?

2012-07-18 Thread Dan Stromberg
On Wed, Jul 18, 2012 at 3:32 AM, wrote: > > > I don't think anything in the thread suggested that this approach will > circumvent a time.sleep(10) call. I'm not sure where you're getting this circumvention issue from. > In any case, it won't. Why is there > a time.sleep(10) call there at all