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
5dabeed4
Commit
5dabeed4
authored
Apr 03, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Index entries.
Consistency nits.
parent
d0a40cb4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
28 deletions
+30
-28
Doc/lib/libprofile.tex
Doc/lib/libprofile.tex
+15
-14
Doc/libprofile.tex
Doc/libprofile.tex
+15
-14
No files found.
Doc/lib/libprofile.tex
View file @
5dabeed4
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
\label
{
profile
}
\label
{
profile
}
Copyright
\copyright
{}
1994, by InfoSeek Corporation, all rights reserved.
Copyright
\copyright
{}
1994, by InfoSeek Corporation, all rights reserved.
\index
{
InfoSeek Corporation
}
Written by James Roskind.
%
Written by James Roskind
\index
{
Roskind, James
}
.
%
\footnote
{
\footnote
{
Updated and converted to
\LaTeX\
by Guido van Rossum. The references to
Updated and converted to
\LaTeX\
by Guido van Rossum. The references to
the old profiler are left in the text, although it no longer exists.
the old profiler are left in the text, although it no longer exists.
...
@@ -128,7 +129,7 @@ The file \file{profile.py} can also be invoked as
...
@@ -128,7 +129,7 @@ The file \file{profile.py} can also be invoked as
a script to profile another script. For example:
a script to profile another script. For example:
\begin{verbatim}
\begin{verbatim}
python /usr/local/lib/python1.
4
/profile.py myscript.py
python /usr/local/lib/python1.
5
/profile.py myscript.py
\end{verbatim}
\end{verbatim}
When you wish to review the profile, you should use the methods in the
When you wish to review the profile, you should use the methods in the
...
@@ -401,16 +402,16 @@ abbreviation is unambiguous. The following are the keys currently
...
@@ -401,16 +402,16 @@ abbreviation is unambiguous. The following are the keys currently
defined:
defined:
\begin{tableii}
{
|l|l|
}{
code
}{
Valid Arg
}{
Meaning
}
\begin{tableii}
{
|l|l|
}{
code
}{
Valid Arg
}{
Meaning
}
\lineii
{
"calls"
}{
call count
}
\lineii
{
'calls'
}{
call count
}
\lineii
{
"cumulative"
}{
cumulative time
}
\lineii
{
'cumulative'
}{
cumulative time
}
\lineii
{
"file"
}{
file name
}
\lineii
{
'file'
}{
file name
}
\lineii
{
"module"
}{
file name
}
\lineii
{
'module'
}{
file name
}
\lineii
{
"pcalls"
}{
primitive call count
}
\lineii
{
'pcalls'
}{
primitive call count
}
\lineii
{
"line"
}{
line number
}
\lineii
{
'line'
}{
line number
}
\lineii
{
"name"
}{
function name
}
\lineii
{
'name'
}{
function name
}
\lineii
{
"nfl"
}{
name/file/line
}
\lineii
{
'nfl'
}{
name/file/line
}
\lineii
{
"stdname"
}{
standard name
}
\lineii
{
'stdname'
}{
standard name
}
\lineii
{
"time"
}{
internal time
}
\lineii
{
'time'
}{
internal time
}
\end{tableii}
\end{tableii}
Note that all sorts on statistics are in descending order (placing
Note that all sorts on statistics are in descending order (placing
...
@@ -723,7 +724,7 @@ class OldProfile(Profile):
...
@@ -723,7 +724,7 @@ class OldProfile(Profile):
nor
_
callers =
{}
nor
_
callers =
{}
nc = 0
nc = 0
for func
_
caller in callers.keys():
for func
_
caller in callers.keys():
nor
_
callers[self.func
_
normalize(func
_
caller)]
=
\
nor
_
callers[self.func
_
normalize(func
_
caller)]
=
\
callers[func
_
caller]
callers[func
_
caller]
nc = nc + callers[func
_
caller]
nc = nc + callers[func
_
caller]
self.stats[nor
_
func] = nc, nc, tt, ct, nor
_
callers
self.stats[nor
_
func] = nc, nc, tt, ct, nor
_
callers
...
...
Doc/libprofile.tex
View file @
5dabeed4
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
\label
{
profile
}
\label
{
profile
}
Copyright
\copyright
{}
1994, by InfoSeek Corporation, all rights reserved.
Copyright
\copyright
{}
1994, by InfoSeek Corporation, all rights reserved.
\index
{
InfoSeek Corporation
}
Written by James Roskind.
%
Written by James Roskind
\index
{
Roskind, James
}
.
%
\footnote
{
\footnote
{
Updated and converted to
\LaTeX\
by Guido van Rossum. The references to
Updated and converted to
\LaTeX\
by Guido van Rossum. The references to
the old profiler are left in the text, although it no longer exists.
the old profiler are left in the text, although it no longer exists.
...
@@ -128,7 +129,7 @@ The file \file{profile.py} can also be invoked as
...
@@ -128,7 +129,7 @@ The file \file{profile.py} can also be invoked as
a script to profile another script. For example:
a script to profile another script. For example:
\begin{verbatim}
\begin{verbatim}
python /usr/local/lib/python1.
4
/profile.py myscript.py
python /usr/local/lib/python1.
5
/profile.py myscript.py
\end{verbatim}
\end{verbatim}
When you wish to review the profile, you should use the methods in the
When you wish to review the profile, you should use the methods in the
...
@@ -401,16 +402,16 @@ abbreviation is unambiguous. The following are the keys currently
...
@@ -401,16 +402,16 @@ abbreviation is unambiguous. The following are the keys currently
defined:
defined:
\begin{tableii}
{
|l|l|
}{
code
}{
Valid Arg
}{
Meaning
}
\begin{tableii}
{
|l|l|
}{
code
}{
Valid Arg
}{
Meaning
}
\lineii
{
"calls"
}{
call count
}
\lineii
{
'calls'
}{
call count
}
\lineii
{
"cumulative"
}{
cumulative time
}
\lineii
{
'cumulative'
}{
cumulative time
}
\lineii
{
"file"
}{
file name
}
\lineii
{
'file'
}{
file name
}
\lineii
{
"module"
}{
file name
}
\lineii
{
'module'
}{
file name
}
\lineii
{
"pcalls"
}{
primitive call count
}
\lineii
{
'pcalls'
}{
primitive call count
}
\lineii
{
"line"
}{
line number
}
\lineii
{
'line'
}{
line number
}
\lineii
{
"name"
}{
function name
}
\lineii
{
'name'
}{
function name
}
\lineii
{
"nfl"
}{
name/file/line
}
\lineii
{
'nfl'
}{
name/file/line
}
\lineii
{
"stdname"
}{
standard name
}
\lineii
{
'stdname'
}{
standard name
}
\lineii
{
"time"
}{
internal time
}
\lineii
{
'time'
}{
internal time
}
\end{tableii}
\end{tableii}
Note that all sorts on statistics are in descending order (placing
Note that all sorts on statistics are in descending order (placing
...
@@ -723,7 +724,7 @@ class OldProfile(Profile):
...
@@ -723,7 +724,7 @@ class OldProfile(Profile):
nor
_
callers =
{}
nor
_
callers =
{}
nc = 0
nc = 0
for func
_
caller in callers.keys():
for func
_
caller in callers.keys():
nor
_
callers[self.func
_
normalize(func
_
caller)]
=
\
nor
_
callers[self.func
_
normalize(func
_
caller)]
=
\
callers[func
_
caller]
callers[func
_
caller]
nc = nc + callers[func
_
caller]
nc = nc + callers[func
_
caller]
self.stats[nor
_
func] = nc, nc, tt, ct, nor
_
callers
self.stats[nor
_
func] = nc, nc, tt, ct, nor
_
callers
...
...
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