tracemalloc.is_tracing() True if the tracemalloc module is tracing Python memory allocations, False
tracemalloc.get_traceback_limit() Get the maximum number of frames stored in the traceback of a trace. The
inclusive If inclusive is True (include), only trace memory blocks allocated in a file with a name matching
pdb.post_mortem(traceback=None) Enter post-mortem debugging of the given traceback object. If no traceback
trace_dispatch(frame, event, arg) This function is installed as the trace function of debugged frames. Its return value is the
count Number of memory blocks (int).
format_stack_entry(frame_lineno, lprefix=': ') Return a string with information about a stack entry, identified by a (frame
set_break(filename, lineno, temporary=0, cond, funcname) Set a new breakpoint. If the lineno line doesn’t exist for
break_anywhere(frame) This method checks if there is a breakpoint in the filename of the current frame.
class trace.CoverageResults A container for coverage results, created by Trace.results(). Should not be created
Page 5 of 15