Skip to content

Conversation

pglombardo
Copy link
Contributor

We use threading.enumerate to get a list of threads and currently report a count of dead threads but enumerate only returns the list of threads that are live.

This PR updates the thread metric reporting to not attempt to calculate dead threads and to also report a count of dummy threads.

Per the Python documentation:

threading.enumerate()

    Return a list of all Thread objects currently alive. The list includes daemonic threads, dummy thread objects created by current_thread(), and the main thread. It excludes terminated threads and threads that have not yet been started.

@pglombardo pglombardo merged commit 828438e into master Mar 19, 2018
@pglombardo pglombardo deleted the proper-thread-reporting branch March 19, 2018 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant