diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-05-14 15:30:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-14 15:30:48 (GMT) |
commit | 61b6e5cf929a80bb44500fb1a212facf66d7f45c (patch) | |
tree | d8cf0b23e368cdf7ab18f8dd40aa290c2d5fee2e | |
parent | 178756c15da0652b30b55b41f0bb939b61c66513 (diff) | |
download | cpython-61b6e5cf929a80bb44500fb1a212facf66d7f45c.zip cpython-61b6e5cf929a80bb44500fb1a212facf66d7f45c.tar.gz cpython-61b6e5cf929a80bb44500fb1a212facf66d7f45c.tar.bz2 |
bpo-30358: Document sort argument of profile.runctx() (GH-1566)
(cherry picked from commit 99776296230ddd8429ebad2d07854b8c27ea10ab)
-rw-r--r-- | Doc/library/profile.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst index b4b1479..5796e3a 100644 --- a/Doc/library/profile.rst +++ b/Doc/library/profile.rst @@ -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 |