November 2018
Intermediate to advanced
310 pages
7h 54m
English
We will primarily be using the cProfile module to check our code. This module is a standard library function that is contained in every modern Python installation. We can run the profiler from the command line with -m cProfile, and specify that we want to organize the results by the cumulative time spent on each function with -s cumtime, and then redirect the output into a text file with the > operator.
Let's try this now:

We can now look at the contents of the text file with our favorite text editor. Let's keep in mind that the output of the ...
Read now
Unlock full access