mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
bpo-34861: Make cumtime the default sorting key for cProfile (GH-31929)
This commit is contained in:
parent
6881ea936e
commit
75eee1d57e
3 changed files with 13 additions and 11 deletions
|
@ -140,7 +140,7 @@ def main():
|
|||
help="Save stats to <outfile>", default=None)
|
||||
parser.add_option('-s', '--sort', dest="sort",
|
||||
help="Sort order when printing to stdout, based on pstats.Stats class",
|
||||
default=-1,
|
||||
default=2,
|
||||
choices=sorted(pstats.Stats.sort_arg_dict_default))
|
||||
parser.add_option('-m', dest="module", action="store_true",
|
||||
help="Profile a library module", default=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue