timeit.Timer
  • References/Python/Python/Debugging & Profiling

class timeit.Timer(stmt='pass', setup='pass', timer=, globals=None) Class for timing execution speed of small code snippets

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

statistics(group_by: str, cumulative: bool=False) Get statistics as a sorted list of Statistic instances grouped

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

class tracemalloc.Frame Frame of a traceback. The Traceback class is a sequence

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

set_next(frame) Stop on the next line in or below the given frame.

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

reverse_order() This method for the Stats class reverses the ordering of the basic list within the object. Note

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

timeit(number=1000000) Time number executions of the main statement. This executes the setup statement once, and then

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

size_diff Difference of total size of memory blocks in bytes between the old and the new snapshots (int): 0

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
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