tracemalloc.Snapshot.load()
  • References/Python/Python/Debugging & Profiling

classmethod load(filename) Load a snapshot from a file. See also dump().

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

pdb.pm() Enter post-mortem debugging of the traceback found in

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

profile.runctx(command, globals, locals, filename=None) This function is similar to run(), with added arguments

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

print_stats(sort=-1) Create a Stats object based on the current profile and print the results to stdout.

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

update(other) Merge in data from another CoverageResults object.

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

tracemalloc.stop() Stop tracing Python memory allocations: uninstall hooks on Python memory allocators. Also clears all previously

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

bdb.checkfuncname(b, frame) Check whether we should break here, depending on the way the breakpoint b was set.

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

set_trace() See the documentation for the functions explained above.

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

break_here(frame) This method checks if there is a breakpoint in the filename and line belonging to frame or, at least

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

strip_dirs() This method for the Stats class removes all leading path information from file names. It is very useful

2025-01-10 15:47:30