MemotivaPerformance and profiling

What is cProfile?

Performance and profiling

Audio flashcard · 0:15

Nortren·

What is cProfile?

0:15

cProfile is the built-in deterministic profiler. It records every function call and reports total time, cumulative time, and call counts. The output can be analyzed with the pstats module or visualized with tools like snakeviz. It has lower overhead than the older profile module.
docs.python.org