Also, what are the differences between cProfile
and profile
?
cProfile is deterministic profiler : trace functions are executed at various points of interest (e.g. function call, function return, exceptions) and precise timings of these events are recorded. You can find more information here.
From the documentation : The Python standard library provides two different profilers: