bpo-30358: Document sort argument of profile.runctx() (GH-1566) · python/cpython@61b6e5c (original) (raw)

Original file line number Diff line number Diff line change
@@ -215,11 +215,11 @@ functions:
215 215
216 216 and gathers profiling statistics from the execution. If no file name is
217 217 present, then this function automatically creates a :class:`~pstats.Stats`
218 - instance and prints a simple profiling report. If the sort value is specified
218 + instance and prints a simple profiling report. If the sort value is specified,
219 219 it is passed to this :class:`~pstats.Stats` instance to control how the
220 220 results are sorted.
221 221
222 -.. function:: runctx(command, globals, locals, filename=None)
222 +.. function:: runctx(command, globals, locals, filename=None, sort=-1)
223 223
224 224 This function is similar to :func:`run`, with added arguments to supply the
225 225 globals and locals dictionaries for the *command* string. This routine