ID EN
Threading

setprofile

Python 3.11

Set a profile function for all threads started from the threading module. The func will be passed to sys.setprofile() for each thread, before its run() method is called.

Syntax

PYTHON
threading.setprofile(func)

See Also

threading sys.setprofile() run()