bdb.Bdb.canonic()
  • References/Python/Python/Debugging & Profiling

canonic(filename) Auxiliary method for getting a filename in a canonical form, that is, as a case-normalized (on case-insensitive

2025-01-10 15:47:30
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
timeit.repeat()
  • References/Python/Python/Debugging & Profiling

timeit.repeat(stmt='pass', setup='pass', timer=, repeat=3, number=1000000, globals=None) Create a Timer instance

2025-01-10 15:47:30
tracemalloc.Statistic.size
  • References/Python/Python/Debugging & Profiling

size Total size of memory blocks in bytes (int).

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

dispatch_return(frame, arg) If the debugger should stop on this function return, invoke the user_return() method

2025-01-10 15:47:30
bdb.BdbQuit
  • References/Python/Python/Debugging & Profiling

exception bdb.BdbQuit Exception raised by the Bdb class for quitting the debugger.

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

tracemalloc.get_object_traceback(obj) Get the traceback where the Python object obj was allocated. Return a Traceback

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

runctx(cmd, globals=None, locals=None) Execute the command and gather statistics from the execution with the current tracing

2025-01-10 15:47:30
timeit.Timer.repeat()
  • References/Python/Python/Debugging & Profiling

repeat(repeat=3, number=1000000) Call timeit() a few times. This is a convenience

2025-01-10 15:47:30
timeit.Timer.print_exc()
  • References/Python/Python/Debugging & Profiling

print_exc(file=None) Helper to print a traceback from the timed code. Typical use:

2025-01-10 15:47:30