[Stackless] Question abut slprofile.py
Kristján Valur Jónsson
kristjan at ccpgames.com
Thu Dec 18 10:11:15 CET 2008
Note that what we also used is a custom flag in stackless, "globaltrace" which makes the tracing state of python global (for the thread) instead of being maintained for each tasklet.
Not only does it allow us to take a profiling "snapshot" of a running application, it also prevented crashes in stackless, which was crashing horribly if any exceptions were being raised in the trace callbacks.
Actually, the last issue was fixed by us changing slprofile to not rely on the stackless tasklet switching callbacks, which tend to have weird behaviour, but rather just querying for the current tasklet in the trace functions.
If you want, I can provide you with the changed files to the the "globaltrace" functionality, but it is a little more work.
From: stackless-bounces at stackless.com [mailto:stackless-bounces at stackless.com] On Behalf Of Andrew Francis
Sent: 17. desember 2008 22:17
To: stackless at stackless.com
Subject: [Stackless] Question abut slprofile.py
A while ago, I recall a thread about using a modified profile module, slprofile for use with Stackless. Where can I find slprofile.py and its documentation?
Stackless mailing list
Stackless at stackless.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6645 bytes
More information about the Stackless