[Stackless] stackless profiling?

Christian Tismer tismer at tismer.com
Wed Aug 28 19:28:07 CEST 2002

Jeff Senn wrote:
> Jeff Senn <senn at maya.com> writes:
>>I just tried using the profiler with stackless with ...um... mixed
> ...
> Um... on looking closer at profile.py, it's going to need quite an
> overhaul to work with stackless -- in particular I think it will need
> to keep separate prior frame state around for each tasklet.  I'm not
> up to doing this at the moment...
> But I think the lock should be there for when someone gets around to
> doing it...  I guess tracing is similar. Maybe something like:


Well, I don't have the problem, since I don't to free
scheduling, yet, maybe?

On the context switching problem:
There is a scheduler_callback interface which gets called
on every schedule() call, if set.
This could be used to switch the profiler context, maybe
using a dict to lookup the apropriate tasklet/context
But I'm not convinced that it makes so much sense. The profiler
is profiling function calls, not tasklets.

ciao - chris

Christian Tismer             :^)   <mailto:tismer at tismer.com>
Mission Impossible 5oftware  :     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 89 09 53 34  home +49 30 802 86 56  pager +49 173 24 18 776
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 www.tismer.com

More information about the Stackless mailing list