On this page
  1. threading.getprofile
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from threading import getprofile
help(getprofile)

Linked from

Related notes