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

sys.getprofile

Prev: sys.getfilesystemencoding | Up: sys | Next: sys.getrecursionlimit
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.getprofile
Tags: #public #python3 #stdlib #sys


Import

import sys
from sys import getprofile

Signature & Overview

sys.getprofile()

Return the profiling function set with sys.setprofile.

Usage

import sys

assert sys.getprofile() is None or callable(sys.getprofile())

Gotchas

REPL Inspect

from sys import getprofile
help(getprofile)

Linked from

Related notes