On this page
tracemalloc.is_tracing
Prev: tracemalloc.get_tracemalloc_memory | Up: tracemalloc | Next: tracemalloc.Iterable
Rel: tracemalloc.BaseFilter, tracemalloc.clear_traces, tracemalloc.DomainFilter, tracemalloc.Filter
Ref: docs.python.org — tracemalloc.is_tracing
Tags: #public #python3 #stdlib #tracemalloc
Import
import tracemalloc
from tracemalloc import is_tracing
Signature & Overview
tracemalloc.is_tracing()
Return True if the tracemalloc module is tracing Python memory allocations.
Usage
import tracemalloc
assert isinstance(tracemalloc.is_tracing(), bool)
Gotchas
- Returns
Truebetweenstart()andstop().
REPL Inspect
from tracemalloc import is_tracing
help(is_tracing)
Linked from
Related notes
- tuts/python3/stdlib_module/tracemalloc/get_tracemalloc_memory Linked here; links to this page; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/Iterable 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_object_traceback shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/get_traceback_limit shared tags: #stdlib, #tracemalloc