[Stackless] tracing Stackless events

Richard Tew richard.m.tew at gmail.com
Thu Dec 20 23:31:09 CET 2007

On Dec 20, 2007 3:43 PM, David Wyand <TheHeadGnome at gnometech.com> wrote:
> I agree that it would be handy to obtain a list of tasklets directly from
> Stackless.  It has helped me in the past with real-time debugging.  Maybe
> Richard could let us in on how Eve does this, if at all.

I don't recall how Eve does it.

But I would expect that you should know where your tasklets are (in
the scheduler or on given channels) and even without explicitly
tracking them you should be to enumerate them.

# Would need to do this for each thread there are tasklets on.
t = tm = stackless.getmain()
l = []
while t not in l:
    if t != tm:
    t = t.next

for c in channels:
    t = c.queue
    while t:
        t = t.next


More information about the Stackless mailing list