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
profile.Profile.runctx()
  • References/Python/Python/Debugging & Profiling

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

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

runcall(func, *args, **kwds) Debug a single function call, and return its result.

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

do_clear(arg) Handle how a breakpoint must be removed when it is a temporary one. This method

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

faulthandler.register(signum, file=sys.stderr, all_threads=True, chain=False) Register a user signal: install a handler for

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
tracemalloc.StatisticDiff
  • References/Python/Python/Debugging & Profiling

class tracemalloc.StatisticDiff Statistic difference on memory allocations between an old and a new Snapshot instance

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
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
bdb.Bdb.dispatch_exception()
  • References/Python/Python/Debugging & Profiling

dispatch_exception(frame, arg) If the debugger should stop at this exception, invokes the user_exception() method

2025-01-10 15:47:30