from the \module{threading} module. The \var{func} will be passed to
\function{sys.settrace()} for each thread, before its \method{run()}
method is called.
+\versionadded{2.3}
\end{funcdesc}
\begin{funcdesc}{setprofile}{func}
from the \module{threading} module. The \var{func} will be passed to
\function{sys.setprofile()} for each thread, before its \method{run()}
method is called.
+\versionadded{2.3}
\end{funcdesc}
Detailed interfaces for the objects are documented below.