How to get a count of -Python- threads from the outside (or via code instrumentation) - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to get a count of -Python- threads from the outside (or via code instrumentation) (/thread-19809.html) |
How to get a count of -Python- threads from the outside (or via code instrumentation) - dstromberg - Jul-15-2019
I want some way of identifying which of my program's many threads are coming from CPython, and which are coming from C/C++ extension modules. I can tell my program has a couple dozen threads by looking at it in csysdig on a Linux system.
I've got this question at stackoverflow too: https://stackoverflow.com/questions/56958009/how-can-i-tell-how-many-python-threads-a-process-has-from-the-outside So far it has no answers.
Ubuntu 16.04.6 LTS |