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 jon, kristjan.jonsson, pitrou
Date 2010-08-17.20:45:48
SpamBayes Score 3.295807e-08
Marked as misclassified No
Message-id <1282077950.48.0.200991088568.issue9622@psf.upfronthosting.co.za>
In-reply-to
Content
I just realized that this is probably a redundant change.
We have C apis to get all the Thread states in an interpreter state (I didn't even know there was such a thing as multiple interpreter states, but there!)
This is the PyInterpreterState_ThreadHead() api et al.
From C, all that is missing is a SetTrace api that takes a thread state.

From python, the threading module provides access to all Thread objects, and each of those has a settrace/setprofile method.

To turn on global tracing from cProfile, all that is needed is to iterate over all the Thread objects.
History
Date User Action Args
2010-08-17 20:45:50kristjan.jonssonsetrecipients: + kristjan.jonsson, pitrou, jon
2010-08-17 20:45:50kristjan.jonssonsetmessageid: <1282077950.48.0.200991088568.issue9622@psf.upfronthosting.co.za>
2010-08-17 20:45:49kristjan.jonssonlinkissue9622 messages
2010-08-17 20:45:48kristjan.jonssoncreate