Tuning Python script performance with profiling
Profiling a program consists in dynamically collecting measures during the program execution : which functions or pieces of code are executed, how many times, the duration of an execution, the call tree, … cProfile is a common profiler for Python programs. cProfile does deterministic profiling – it collects counters for…