On this page
threading.getprofile
Prev: threading.get_native_id | Up: threading | Next: threading.gettrace
Rel: threading.active_count, threading.Barrier, threading.BoundedSemaphore, threading.BrokenBarrierError
Ref: docs.python.org — threading.getprofile
Tags: #public #python3 #stdlib #threading
Import
import threading
from threading import getprofile
Signature & Overview
threading.getprofile()
Get the profiler function as set by threading.setprofile().
Usage
import threading
# Returns the profile function registered via threading.setprofile() (or None)
assert threading.getprofile() is None or callable(threading.getprofile())
Gotchas
- Requires Python 3.10+: Inspects the hook that will be installed on future threads.
REPL Inspect
from threading import getprofile
help(getprofile)
Linked from
Related notes
- tuts/python3/stdlib_module/threading/get_native_id Linked here; links to this page; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/gettrace Linked here; links to this page; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/threading/active_count Linked here; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/Barrier Linked here; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/BoundedSemaphore Linked here; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/BrokenBarrierError Linked here; shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/Condition shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/current_thread shared tags: #stdlib, #threading
- tuts/python3/stdlib_module/threading/enumerate shared tags: #stdlib, #threading