parameters: (func)
docstring: 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.
docstring_summary: Set a profile function for all threads started from the threading module.
docstring_tokens: Set a profile function for all threads started from the threading module .
function: def setprofile(func):
      """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.
  
      """
      global _profile_hook
      _profile_hook = func
function_tokens: def setprofile ( func ) : global _profile_hook _profile_hook = func