Tuning Python script performance with profiling
![](https://iww.inria.fr/sed-sophia/files/2021/04/snakeviz-example-250x150.png)
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…