mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Patch #445538: add completion for pstats.py sort cmd.
This commit is contained in:
parent
a1fd0505af
commit
27c430e54e
1 changed files with 2 additions and 0 deletions
|
@ -640,6 +640,8 @@ if __name__ == '__main__':
|
||||||
def help_sort(self):
|
def help_sort(self):
|
||||||
print "Sort profile data according to specified keys."
|
print "Sort profile data according to specified keys."
|
||||||
print "(Typing `sort' without arguments lists valid keys.)"
|
print "(Typing `sort' without arguments lists valid keys.)"
|
||||||
|
def complete_sort(self, text, *args):
|
||||||
|
return [a for a in Stats.sort_arg_dict_default.keys() if a.startswith(text)]
|
||||||
|
|
||||||
def do_stats(self, line):
|
def do_stats(self, line):
|
||||||
return self.generic('print_stats', line)
|
return self.generic('print_stats', line)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue