PyDocs

Nav

Debugging and profiling

Filter

  • Filter(inclusive: bool, filename_pattern: str, lineno: int = None, all_frames: bool = False, domain: int = None)
Filter on traces of memory blocks.
Changed in 3.5, 3.6
  • 3.5: The '.pyo' file extension is no longer replaced with '.py'.
  • 3.6: Added the domain attribute.
Members of Filter

a

all_frames
If all_frames is True, all frames of the traceback are checked.

d

domain
Address space of a memory block (int or None).

f

filename_pattern
Filename pattern of the filter (str).

i

inclusive
If inclusive is True (include), only match memory blocks allocated in a file with a name matching filename_pattern at line number lineno.

l

lineno
Line number (int) of the filter.
0 Examples
No examples for tracemalloc/Filter.
See Also
No see-alsos for tracemalloc/Filter
0 Notes
No notes for Filter