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 benspiller
Recipients benspiller, docs@python
Date 2019-10-27.18:18:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572200323.18.0.841143569385.issue38607@roundup.psfhosted.org>
In-reply-to
Content
The built-in profiling modules only provide information about the main thread (at least when invoked as documented). 

To avoid user confusion we should state this in the documentation at https://docs.python.org/3/library/profile.html. 

Potentially we could also suggest mitigations such as manually creating a Profile instance in the user's thread code, but the most important thing is to make clear what the module does/does not do out of the box. 

(see also https://bugs.python.org/issue9609 which discusses a possible non-doc change to help with multi-threading, but looks like that's stalled, so best to push ahead with doc'ng this.
History
Date User Action Args
2019-10-27 18:18:43benspillersetrecipients: + benspiller, docs@python
2019-10-27 18:18:43benspillersetmessageid: <1572200323.18.0.841143569385.issue38607@roundup.psfhosted.org>
2019-10-27 18:18:43benspillerlinkissue38607 messages
2019-10-27 18:18:43benspillercreate