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
- Default is
1frame: Higher limits give fuller call stacks at higher memory overhead.
REPL Inspect
from tracemalloc import get_traceback_limit
help(get_traceback_limit)
Linked from
Related notes
- tuts/python3/stdlib_module/tracemalloc/get_object_traceback Linked here; links to this page; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/get_traced_memory Linked here; links to this page; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/tracemalloc/BaseFilter Linked here; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/clear_traces Linked here; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/DomainFilter Linked here; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/Filter Linked here; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/Frame shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/get_tracemalloc_memory shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/is_tracing shared tags: #stdlib, #tracemalloc