Noam Elfanbaum - Let’s Build a Python Profiler in 25 LOC
Let’s Build a Python Profiler in 25 LOC [EuroPython 2018 - Talk - 2018-07-25 - Lammermuir] [Edinburgh, UK] By Noam Elfanbaum A profile is a set of statistics that describes how often and for how long various parts of the program executed. Most profilers run inside your Python process. If you’re inside a Python program you generally have pretty easy access to its stack, hence we can gather information about time spent in each level. In this talk we'll build a Python profiler from scratch and so learn about the dynamic nature of Python and how do well-known profilers such as cProfile. We'll also learn the difference between a tracing and a sampling profiler and which one to use in what circumstance. License: This video is licensed under the CC BY-NC-SA 3.0 license: https://creativecommons.org/licenses/by-nc-sa/3.0/ Please see our speaker release agreement for details: https://ep2018.europython.eu/en/speaker-release-agreement/