Tutorials & examples

Tutorials & examples#

Step-by-step tutorials and self-contained example scripts.

Example scripts#

The examples/ directory in the repository contains ready-to-run scripts:

  • ex_line_profiling.py — demonstrates line-by-line profiling with use_line_profiler=True.

  • benchmark_overhead.py — measures per-call overhead of every profiling mode and produces a bar chart.

Run any example with:

python examples/<script>.py

Notebooks#