This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients asvetlov, kristjan.jonsson, stutzbach
Date 2010-09-09.15:50:38
SpamBayes Score 9.98075e-06
Marked as misclassified No
Message-id <>
Here is a new patch.  When 'allthreads' is specified to cProfile.Profile.enable(), profling is enabled on all threads.
The testsuite tests to see that all threads do indeed register, it does not attempt to validate the timings.

It turns it on for all threads (in all interpreter states).  Maybe this is overdoing it.  Interpreter states is something new to me, a py3k feature?

Now, the problem with this approach is that it only works with threads already in existence when called.  The "global" appcoach that we used to solve a similar problem in Stackless Python, however, will invoke the tracing/profiling functionality for all tasklets, even if they were new.  The same would be useful for threads in regular python, especially in long running server applications.

However, this patch stands on its own.  This particular shortcoming could be fixed later.
Date User Action Args
2010-09-09 15:50:45kristjan.jonssonsetrecipients: + kristjan.jonsson, stutzbach, asvetlov
2010-09-09 15:50:45kristjan.jonssonsetmessageid: <>
2010-09-09 15:50:43kristjan.jonssonlinkissue9609 messages
2010-09-09 15:50:42kristjan.jonssoncreate