We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfda31 commit 994e224Copy full SHA for 994e224
Doc/library/profiling-sampling.rst
@@ -1,3 +1,5 @@
1
+.. highlight:: shell-session
2
+
3
.. _profiling-sampling:
4
5
***************************************************
Doc/library/profiling.rst
.. _profiling-module:
***************************************
@@ -176,7 +178,9 @@ To profile a script from the command line::
176
178
177
179
python -m profiling.tracing myscript.py
180
-To profile a piece of code programmatically::
181
+To profile a piece of code programmatically:
182
183
+.. code-block:: python
184
185
import profiling.tracing
186
profiling.tracing.run('my_function()')
0 commit comments