stop_here(frame) This method checks if the frame is somewhere below botframe in the call stack. botframe
run(statement, globals=None, locals=None) runeval(expression, globals=None, locals=None) runcall(function
write_results(show_missing=True, summary=False, coverdir=None) Write coverage results. Set show_missing to show lines
lineno Line number (int).
compare_to(old_snapshot: Snapshot, group_by: str, cumulative: bool=False) Compute the differences with an old snapshot. Get
create_stats() Stop collecting profiling data and record the results internally as the current profile.
size Total size of memory blocks in bytes in the new snapshot (int): 0 if the memory blocks have been
clear_all_file_breaks(filename) Delete all breakpoints in filename. If none were set, an error message is returned
print_callers(*restrictions) This method for the Stats class prints a list of all functions that called each function
class tracemalloc.Snapshot Snapshot of traces of memory blocks allocated by Python. The
Page 13 of 15