We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b235f commit bb0507bCopy full SHA for bb0507b
Doc/library/profile.rst
@@ -300,8 +300,10 @@ functions:
300
profile and print the results to stdout.
301
302
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.
+ statistics. It accepts a single key or a tuple of keys to enable
+ 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).
307
308
.. versionadded:: 3.13
309
:meth:`~Profile.print_stats` now accepts a single key or a tuple of keys.
0 commit comments