Skip to content

Commit bb0507b

Browse files
Update Doc/library/profile.rst
Co-authored-by: Ege Akman <[email protected]>
1 parent f6b235f commit bb0507b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/library/profile.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,10 @@ functions:
300300
profile and print the results to stdout.
301301

302302
The *sort* parameter specifies the sorting order of the displayed
303-
statistics. It accepts tuple of SortKey or accepts a tuple of SortKeys
304-
to enable multi-level sorting.
303+
statistics. It accepts a single key or a tuple of keys to enable
304+
multi-level sorting. A key can be either an integer, a string, or a
305+
SortKey enum identifying the basis of a sort (for example: -1,
306+
'time', 'name', SortKey.TIME, or SortKey.NAME).
305307

306308
.. versionadded:: 3.13
307309
:meth:`~Profile.print_stats` now accepts a single key or a tuple of keys.

0 commit comments

Comments
 (0)