-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically profile newly spawned threads (#17)
* Proof of Concept support for multithreading * Allow the tid to be specified with the `render` method * Store the ThreadProfiler run stack depth and profiler in thread local storage * Remove useless `ThreadProfiler` in `pytest_pyfunc_call` * Emit a warning log when a test ends with a an active thread * Test that multiple threads are actually recorded * Do not recalculate if the trace invocation was from `threading.Thread.run` * Document ThreadProfiler.__call__
- Loading branch information
1 parent
e663c8f
commit 2c7c134
Showing
3 changed files
with
136 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters