class tracemalloc.Filter(inclusive: bool, filename_pattern: str, lineno: int=None, all_frames: bool=False)
Filter on traces of memory blocks.
See the fnmatch.fnmatch() function for the syntax of filename_pattern. The '.pyc' file extension is replaced with '.py'.
Examples:
Filter(True, subprocess.__file__) only includes traces of the subprocess module
Filter(False, tracemalloc.__file__) excludes traces of the tracemalloc module
Filter(False, "<unknown>") excludes empty tracebacks