This is a static archive of the Python wiki, which was retired in February 2026 due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

Python Library Reference

Note: this is an unofficial posting of the official python documentation. So PLEASE DON'T modify the existing text! It will probably just be overwritten and no one will realize you've done it. PLEASE DO add any and all comments at the end of the section they apply to. That's what it's for!

10. The Python Profiler

10.1 Introduction to the profiler

10.2 How Is This Profiler Different From The Old Profiler?

10.3 Instant Users Manual

10.4 What Is Deterministic Profiling?

10.5 Reference Manual

10.6 Limitations

10.7 Calibration

10.8 Extensions -- Deriving Better Profilers

10.9 hotshot -- High performance logging profiler 10.9.1 Profile Objects 10.9.2 Using hotshot data 10.9.3 Example Usage

10.10 timeit -- Measure execution time of small code snippets 10.10.1 Command Line Interface 10.10.2 Examples


CategoryDocumentation


2026-02-14 16:12