The profile module provides APIs for collecting and analyzing statistics about how Python source consumes processor resources. Note This output reports in this section have been reformatted to fit on the page. Lines ending with backslash (\) are continued on the next line. Running the Profiler¶ The most basic starting point in the profile module is run(). It takes a string statement as argument, a
![profile and pstats — Performance Analysis — PyMOTW 3](https://cdn-ak-scissors.b.st-hatena.com/image/square/fa184e06899e336ccb2076d6804e097c32257334/height=288;version=1;width=512/https%3A%2F%2Fpymotw.com%2F3%2F_static%2Flogo-large.png)