Message355492
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. |
|
Date |
User |
Action |
Args |
2019-10-27 18:18:43 | benspiller | set | recipients:
+ benspiller, docs@python |
2019-10-27 18:18:43 | benspiller | set | messageid: <1572200323.18.0.841143569385.issue38607@roundup.psfhosted.org> |
2019-10-27 18:18:43 | benspiller | link | issue38607 messages |
2019-10-27 18:18:43 | benspiller | create | |
|