File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ directly.
123123Basic profiling
124124---------------
125125
126- The simplest approach uses the :func: `run ` function::
126+ The simplest approach uses the :func: `! run ` function::
127127
128128 import profiling.tracing
129129 profiling.tracing.run('my_function()')
@@ -134,10 +134,10 @@ To save results for later analysis::
134134 profiling.tracing.run('my_function()', 'output.prof')
135135
136136
137- Using the Profile Class
138- -----------------------
137+ Using the :class: ` ! Profile` class
138+ ---------------------------------
139139
140- The :class: `Profile ` class provides fine-grained control::
140+ The :class: `! Profile ` class provides fine-grained control::
141141
142142 import profiling.tracing
143143 import pstats
@@ -154,7 +154,7 @@ The :class:`Profile` class provides fine-grained control::
154154 ps.print_stats()
155155 print(s.getvalue())
156156
157- The :class: `Profile ` class also works as a context manager::
157+ The :class: `! Profile ` class also works as a context manager::
158158
159159 import profiling.tracing
160160
Original file line number Diff line number Diff line change @@ -1727,7 +1727,7 @@ Deprecated
17271727* Deprecated passing the following arguments as keyword arguments:
17281728
17291729 - *func * in :func: `functools.partialmethod `, :func: `weakref.finalize `,
1730- :meth: `profile.Profile.runcall `, :meth: `cProfile.Profile.runcall `,
1730+ :meth: `profile.Profile.runcall `, :meth: `! cProfile.Profile.runcall `,
17311731 :meth: `bdb.Bdb.runcall `, :meth: `trace.Trace.runfunc ` and
17321732 :func: `curses.wrapper `.
17331733 - *function * in :meth: `unittest.TestCase.addCleanup `.
You can’t perform that action at this time.
0 commit comments