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

tracemalloc.get_traceback_limit

Prev: tracemalloc.get_object_traceback | Up: tracemalloc | Next: tracemalloc.get_traced_memory
Rel: tracemalloc.BaseFilter, tracemalloc.clear_traces, tracemalloc.DomainFilter, tracemalloc.Filter
Ref: docs.python.org — tracemalloc.get_traceback_limit
Tags: #public #python3 #stdlib #tracemalloc


Import

import tracemalloc
from tracemalloc import get_traceback_limit

Signature & Overview

tracemalloc.get_traceback_limit()

Get the maximum number of frames stored in the traceback of a trace.

Usage

import tracemalloc

tracemalloc.start(4)
try:
    assert tracemalloc.get_traceback_limit() == 4
finally:
    tracemalloc.stop()

Gotchas

REPL Inspect

from tracemalloc import get_traceback_limit
help(get_traceback_limit)

Linked from

Related notes