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

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

REPL Inspect

from tracemalloc import is_tracing
help(is_tracing)

Linked from

Related notes