pyinstrument¶ Contents Home User guide Installation Profile a Python script Profile a specific chunk of code Profile code in Jupyter/IPython Profile a web request in Django Profile a web request in Flask Profile a web request in FastAPI Profile a web request in Falcon Profile Pytest tests Profile something else? How it works Statistical profiling (not tracing) Full-stack recording ‘Wall-clock’ time (not CPU time) Async profiling API Reference Command line interface Python API GitHub Indices and tables¶ Index Search Page