[Stackless] Tracing stackless tasklets.

Richard Tew richard.m.tew at gmail.com
Mon Oct 1 19:44:52 CEST 2007


On 10/1/07, Vilhelm Sævarsson <vilhelmenator at gmail.com> wrote:
> Now you need to call sys.settrace within the running tasklet and manually
> set the f_trace for the tasklet.
>
> Is this a bug or a design flaw?

Neither.  It is what you have to do, in order to get the behaviour you
are doing it to get. Calling sys.settrace does not modify the f_trace
of the current frame in native Python and correspondingly it should
not do it in Stackless.

I think that Stackless could use some mechanism to place tracing and
profiling callbacks for newly started tasklets though, before they are
run.  There is no reason that needs to be such a convoluted process,
like it is now.

Cheers,
Richard.




More information about the Stackless mailing list