Kaydet (Commit) 99776296 authored tarafından csabella's avatar csabella Kaydeden (comit) Berker Peksag

bpo-30358: Document sort argument of profile.runctx() (GH-1566)

üst 4ab6abfc
...@@ -215,11 +215,11 @@ functions: ...@@ -215,11 +215,11 @@ functions:
and gathers profiling statistics from the execution. If no file name is and gathers profiling statistics from the execution. If no file name is
present, then this function automatically creates a :class:`~pstats.Stats` present, then this function automatically creates a :class:`~pstats.Stats`
instance and prints a simple profiling report. If the sort value is specified instance and prints a simple profiling report. If the sort value is specified,
it is passed to this :class:`~pstats.Stats` instance to control how the it is passed to this :class:`~pstats.Stats` instance to control how the
results are sorted. results are sorted.
.. function:: runctx(command, globals, locals, filename=None) .. function:: runctx(command, globals, locals, filename=None, sort=-1)
This function is similar to :func:`run`, with added arguments to supply the This function is similar to :func:`run`, with added arguments to supply the
globals and locals dictionaries for the *command* string. This routine globals and locals dictionaries for the *command* string. This routine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment