Deadlocks? Detect where your threads hang in Python with one import.
Project description
Copy this code and do
import hanging_threads
If a thread is at the same place for SECONDS_FROZEN then the stacktrace is printed.
This script prints
- ——————– Thread 6628 ——————–
- File “hanging_threads.py”, line 70, in <module>
time.sleep(3) # TEST
- ——————– Thread 6628 ——————–
- File “hanging_threads.py”, line 70, in <module>
time.sleep(3) # TEST
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hanging_threads-0.0.1.zip
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for hanging_threads-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f54c2e3182c19f040a7d284104c444d54a6bfaf7bd5405f7d26cbcb6cd0664e9 |
|
MD5 | 7141547d33ffe5321c2e59dcf18d1f9c |
|
BLAKE2b-256 | 8aefd3a7675e79218a186f4c3b0aca162f265847b15232712c47ffaea5382b76 |