Book Image

Mastering Python High Performance

Book Image

Mastering Python High Performance

Overview of this book

Table of Contents (15 chapters)

Chapter 2. The Profilers

In the previous chapter, we covered the basics of profiling and understood its importance. You learned how it will help the development process if we incorporate the practice of profiling into the cycle of development. We also went over some good profiling practices.

Finally, we covered some theory about the different execution times our program can have. In this chapter, we'll use the first part (the part about profiling). Then, with the help of two specific Python profilers (cProfile and line_profilers), we'll start putting into practice some theory that you have learned.

In this chapter, we will cover the following topics:

  • Some basic information about each profiler

  • How to download and install each profiler

  • Use cases examples with different options

  • Differences and similarities between both profilers