bpo-34861: Make cumtime the default sorting key for cProfile (GH-31929)

This commit is contained in:
Daniël van Noord 2022-03-30 13:10:10 +02:00 committed by GitHub
parent 6881ea936e
commit 75eee1d57e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 11 deletions

View file

@ -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)