Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Oct 5, 2024
1 parent 65bda1d commit fa9bb6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/source/manual/examples/example_units.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fa9bb6f

Please sign in to comment.