add an additional case for idle ThreadPoolExecutor threads

this is what they look like in Python 3.7
This commit is contained in:
Min RK
2019-02-12 16:00:07 +01:00
parent 7c46fe74a5
commit 5e77e448bd

View File

@@ -437,6 +437,9 @@ def print_stacks(file=sys.stderr):
if (
last_frame[0].endswith('threading.py')
and last_frame[-1] == 'waiter.acquire()'
) or (
last_frame[0].endswith('thread.py')
and last_frame[-1].endswith('work_queue.get(block=True)')
):
# thread is waiting on a condition
# call it idle rather than showing the uninteresting stack