From fa9bb6f863c329de99c536a2d75035cc6b2a8a93 Mon Sep 17 00:00:00 2001 From: joncrall Date: Sat, 5 Oct 2024 14:24:18 -0400 Subject: [PATCH] wip --- docs/source/manual/examples/example_units.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/source/manual/examples/example_units.rst b/docs/source/manual/examples/example_units.rst index a443d00..51475a3 100644 --- a/docs/source/manual/examples/example_units.rst +++ b/docs/source/manual/examples/example_units.rst @@ -4,6 +4,8 @@ Timing Units This example demonstrates how you can change the units in which the time is reported. +Write the following demo script to disk + .. code:: bash echo "if 1: @@ -41,6 +43,11 @@ reported. " > script.py +Run the script with line profiling on. To change the unit in which time is +reported use the ``--unit`` command line argument. The following example shows +4 variants: + +.. code:: bash LINE_PROFILE=1 python script.py # Use different values for the unit report