Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c3e5b10a
Commit
c3e5b10a
authored
Oct 07, 2012
by
Andrew Svetlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #14900: Add aliases for sorting params for pstat to follow column names from pstat output.
Patch by Arne Babenhauserheide.
parent
2ef4584e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/pstats.py
Lib/pstats.py
+4
-0
No files found.
Lib/pstats.py
View file @
c3e5b10a
...
@@ -159,8 +159,11 @@ class Stats:
...
@@ -159,8 +159,11 @@ class Stats:
# along with some printable description
# along with some printable description
sort_arg_dict_default
=
{
sort_arg_dict_default
=
{
"calls"
:
(((
1
,
-
1
),
),
"call count"
),
"calls"
:
(((
1
,
-
1
),
),
"call count"
),
"ncalls"
:
(((
1
,
-
1
),
),
"call count"
),
"cumtime"
:
(((
3
,
-
1
),
),
"cumulative time"
),
"cumulative"
:
(((
3
,
-
1
),
),
"cumulative time"
),
"cumulative"
:
(((
3
,
-
1
),
),
"cumulative time"
),
"file"
:
(((
4
,
1
),
),
"file name"
),
"file"
:
(((
4
,
1
),
),
"file name"
),
"filename"
:
(((
4
,
1
),
),
"file name"
),
"line"
:
(((
5
,
1
),
),
"line number"
),
"line"
:
(((
5
,
1
),
),
"line number"
),
"module"
:
(((
4
,
1
),
),
"file name"
),
"module"
:
(((
4
,
1
),
),
"file name"
),
"name"
:
(((
6
,
1
),
),
"function name"
),
"name"
:
(((
6
,
1
),
),
"function name"
),
...
@@ -168,6 +171,7 @@ class Stats:
...
@@ -168,6 +171,7 @@ class Stats:
"pcalls"
:
(((
0
,
-
1
),
),
"primitive call count"
),
"pcalls"
:
(((
0
,
-
1
),
),
"primitive call count"
),
"stdname"
:
(((
7
,
1
),
),
"standard name"
),
"stdname"
:
(((
7
,
1
),
),
"standard name"
),
"time"
:
(((
2
,
-
1
),
),
"internal time"
),
"time"
:
(((
2
,
-
1
),
),
"internal time"
),
"tottime"
:
(((
2
,
-
1
),
),
"internal time"
),
}
}
def
get_sort_arg_defs
(
self
):
def
get_sort_arg_defs
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment