Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.5] bpo-30358: Document sort argument of profile.runctx() (GH-1566) #1580

Merged
merged 1 commit into from
May 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/profile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ functions:

and gathers profiling statistics from the execution. If no file name is
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
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
globals and locals dictionaries for the *command* string. This routine
Expand Down