pstats.Stats.print_stats()
  • References/Python/Python/Debugging & Profiling

print_stats(*restrictions) This method for the Stats class prints out a report as described in the profile

2025-01-10 15:47:30
pstats.Stats.dump_stats()
  • References/Python/Python/Debugging & Profiling

dump_stats(filename) Save the data loaded into the Stats object to a file named filename. The file is

2025-01-10 15:47:30
pdb.runeval()
  • References/Python/Python/Debugging & Profiling

pdb.runeval(expression, globals=None, locals=None) Evaluate the expression (given as a string or a code object) under

2025-01-10 15:47:30
pdb.run()
  • References/Python/Python/Debugging & Profiling

pdb.run(statement, globals=None, locals=None) Execute the statement (given as a string or a code object) under debugger

2025-01-10 15:47:30
profile.Profile.runctx()
  • References/Python/Python/Debugging & Profiling

runctx(cmd, globals, locals) Profile the cmd via

2025-01-10 15:47:30
tracemalloc.Snapshot.dump()
  • References/Python/Python/Debugging & Profiling

dump(filename) Write the snapshot into a file. Use load() to reload the snapshot

2025-01-10 15:47:30
trace.Trace.run()
  • References/Python/Python/Debugging & Profiling

run(cmd) Execute the command and gather statistics from the execution with the current tracing parameters. cmd must

2025-01-10 15:47:30
bdb.Bdb.get_bpbynumber()
  • References/Python/Python/Debugging & Profiling

get_bpbynumber(arg) Return a breakpoint specified by the given number. If arg is a string, it will be converted to

2025-01-10 15:47:30
bdb.Bdb.clear_all_breaks()
  • References/Python/Python/Debugging & Profiling

clear_all_breaks() Delete all existing breakpoints.

2025-01-10 15:47:30
bdb.Bdb.set_continue()
  • References/Python/Python/Debugging & Profiling

set_continue() Stop only at breakpoints or when finished. If there are no breakpoints, set the system trace function to None

2025-01-10 15:47:30