[Stackless] Stackless and tracing (for debugger)
Kristján V. Jónsson
kristjan at ccpgames.com
Wed May 3 18:59:30 CEST 2006
Maybe I should chip in here and explain how we made the profile module work with stackless.
We added the "context" token in the stackless python core, so that sys.profile hook gets that token, along with the two tasklet objects being switched between, when such a context switch occurs. We then sublcassed the profile.Profile class to deal properly with timing in different tasklets. I can make the relevant changes to stackless availible if anyone is interested, along with the
class slprofile.Profile(profile.Profile)
Kristján
-----Original Message-----
From: stackless-bounces at stackless.com [mailto:stackless-bounces at stackless.com] On Behalf Of Christian Tismer
Sent: 3. maí 2006 15:15
To: Harry Kalogirou
Cc: Richard; stackless at stackless.com
Subject: Re: [Stackless] Stackless and tracing (for debugger)
Harry Kalogirou wrote:
> I think that its a good design, but it would be more handy now that
> there is no tasklet-aware debugger and since most of the times
> tasklets are switched non-preemptively, to have the option to trace
> all the code as one "thread"..
The problem with that is that debuggers are not prepared for the stackless magic and just screw up. So we thought it is saner to do it per-tasklet.
--
Christian Tismer :^) <mailto:tismer at stackless.com>
tismerysoft GmbH : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless
More information about the Stackless
mailing list