added the headings of Stats.print_title to the sortable arguments. They are added as aliases - except for percall, which needs more invasive changes. percall will be added in a separate commit. diff -r 127eda0b7610 -r 77c85ee9da79 Lib/pstats.py --- a/Lib/pstats.py Thu May 24 11:20:21 2012 +0200 +++ b/Lib/pstats.py Thu May 24 11:31:51 2012 +0200 @@ -172,15 +172,19 @@ # along with some printable description sort_arg_dict_default = { "calls" : (((1,-1), ), "call count"), + "cumtime" : (((3,-1), ), "cumulative time"), "cumulative": (((3,-1), ), "cumulative time"), "file" : (((4, 1), ), "file name"), + "filename" : (((4, 1), ), "file name"), "line" : (((5, 1), ), "line number"), "module" : (((4, 1), ), "file name"), "name" : (((6, 1), ), "function name"), + "ncalls" : (((1,-1), ), "call count"), "nfl" : (((6, 1),(4, 1),(5, 1),), "name/file/line"), "pcalls" : (((0,-1), ), "primitive call count"), "stdname" : (((7, 1), ), "standard name"), "time" : (((2,-1), ), "internal time"), + "tottime" : (((2,-1), ), "internal time"), } def get_sort_arg_defs(self):