diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-06-05 11:48:29 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-06-05 11:48:29 (GMT) |
commit | 25587742f6a9dd7d88ee7f7ca8d32c6f756a4198 (patch) | |
tree | 7997ee8bc388cdcc91ea5f11752a2afc982ba2a7 | |
parent | e12685757f8f7e000e789324f85a232032e86ff6 (diff) | |
download | cpython-25587742f6a9dd7d88ee7f7ca8d32c6f756a4198.zip cpython-25587742f6a9dd7d88ee7f7ca8d32c6f756a4198.tar.gz cpython-25587742f6a9dd7d88ee7f7ca8d32c6f756a4198.tar.bz2 |
Issue #24148: Fix incorrect Stats.sort_stats() example.
"cum" is not a valid argument.
Patch by Brandon Milam.
-rw-r--r-- | Doc/library/profile.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst index 6a6c489..2928821 100644 --- a/Doc/library/profile.rst +++ b/Doc/library/profile.rst @@ -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 |