mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #24148: Fix incorrect Stats.sort_stats() example.
"cum" is not a valid argument. Patch by Brandon Milam.
This commit is contained in:
parent
e12685757f
commit
25587742f6
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ This will sort all the statistics by file name, and then print out statistics
|
|||
for only the class init methods (since they are spelled with ``__init__`` in
|
||||
them). As one final example, you could try::
|
||||
|
||||
p.sort_stats('time', 'cum').print_stats(.5, 'init')
|
||||
p.sort_stats('time', 'cumulative').print_stats(.5, 'init')
|
||||
|
||||
This line sorts statistics with a primary key of time, and a secondary key of
|
||||
cumulative time, and then prints out some of the statistics. To be specific, the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue