dump(filename) Write the snapshot into a file. Use load() to reload the snapshot
pdb.runeval(expression, globals=None, locals=None) Evaluate the expression (given as a string or a code object) under
set_quit() Set the quitting attribute to True. This raises BdbQuit in the next call to
faulthandler.register(signum, file=sys.stderr, all_threads=True, chain=False) Register a user signal: install a handler for
pdb.run(statement, globals=None, locals=None) Execute the statement (given as a string or a code object) under debugger
dump_stats(filename) Save the data loaded into the Stats object to a file named filename. The file is
set_trace([frame]) Start debugging from frame. If frame is not specified, debugging starts from caller’s frame
run(cmd) Execute the command and gather statistics from the execution with the current tracing parameters. cmd must
tracemalloc.take_snapshot() Take a snapshot of traces of memory blocks allocated by Python. Return a new Snapshot
class tracemalloc.Filter(inclusive: bool, filename_pattern: str, lineno: int=None, all_frames: bool=False) Filter on traces
Page 7 of 15