Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5dabeed

Browse files
committed
Index entries.
Consistency nits.
1 parent d0a40cb commit 5dabeed

2 files changed

Lines changed: 30 additions & 28 deletions

File tree

Doc/lib/libprofile.tex

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ \chapter{The Python Profiler}
22
\label{profile}
33

44
Copyright \copyright{} 1994, by InfoSeek Corporation, all rights reserved.
5+
\index{InfoSeek Corporation}
56

6-
Written by James Roskind.%
7+
Written by James Roskind\index{Roskind, James}.%
78
\footnote{
89
Updated and converted to \LaTeX\ by Guido van Rossum. The references to
910
the old profiler are left in the text, although it no longer exists.
@@ -128,7 +129,7 @@ \section{Instant Users Manual}
128129
a script to profile another script. For example:
129130

130131
\begin{verbatim}
131-
python /usr/local/lib/python1.4/profile.py myscript.py
132+
python /usr/local/lib/python1.5/profile.py myscript.py
132133
\end{verbatim}
133134

134135
When you wish to review the profile, you should use the methods in the
@@ -401,16 +402,16 @@ \subsection{The \sectcode{Stats} Class}
401402
defined:
402403

403404
\begin{tableii}{|l|l|}{code}{Valid Arg}{Meaning}
404-
\lineii{"calls"}{call count}
405-
\lineii{"cumulative"}{cumulative time}
406-
\lineii{"file"}{file name}
407-
\lineii{"module"}{file name}
408-
\lineii{"pcalls"}{primitive call count}
409-
\lineii{"line"}{line number}
410-
\lineii{"name"}{function name}
411-
\lineii{"nfl"}{name/file/line}
412-
\lineii{"stdname"}{standard name}
413-
\lineii{"time"}{internal time}
405+
\lineii{'calls'}{call count}
406+
\lineii{'cumulative'}{cumulative time}
407+
\lineii{'file'}{file name}
408+
\lineii{'module'}{file name}
409+
\lineii{'pcalls'}{primitive call count}
410+
\lineii{'line'}{line number}
411+
\lineii{'name'}{function name}
412+
\lineii{'nfl'}{name/file/line}
413+
\lineii{'stdname'}{standard name}
414+
\lineii{'time'}{internal time}
414415
\end{tableii}
415416

416417
Note that all sorts on statistics are in descending order (placing
@@ -723,8 +724,8 @@ \subsection{OldProfile Class}
723724
nor_callers = {}
724725
nc = 0
725726
for func_caller in callers.keys():
726-
nor_callers[self.func_normalize(func_caller)]=\
727-
callers[func_caller]
727+
nor_callers[self.func_normalize(func_caller)] = \
728+
callers[func_caller]
728729
nc = nc + callers[func_caller]
729730
self.stats[nor_func] = nc, nc, tt, ct, nor_callers
730731
\end{verbatim}

Doc/libprofile.tex

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ \chapter{The Python Profiler}
22
\label{profile}
33

44
Copyright \copyright{} 1994, by InfoSeek Corporation, all rights reserved.
5+
\index{InfoSeek Corporation}
56

6-
Written by James Roskind.%
7+
Written by James Roskind\index{Roskind, James}.%
78
\footnote{
89
Updated and converted to \LaTeX\ by Guido van Rossum. The references to
910
the old profiler are left in the text, although it no longer exists.
@@ -128,7 +129,7 @@ \section{Instant Users Manual}
128129
a script to profile another script. For example:
129130

130131
\begin{verbatim}
131-
python /usr/local/lib/python1.4/profile.py myscript.py
132+
python /usr/local/lib/python1.5/profile.py myscript.py
132133
\end{verbatim}
133134

134135
When you wish to review the profile, you should use the methods in the
@@ -401,16 +402,16 @@ \subsection{The \sectcode{Stats} Class}
401402
defined:
402403

403404
\begin{tableii}{|l|l|}{code}{Valid Arg}{Meaning}
404-
\lineii{"calls"}{call count}
405-
\lineii{"cumulative"}{cumulative time}
406-
\lineii{"file"}{file name}
407-
\lineii{"module"}{file name}
408-
\lineii{"pcalls"}{primitive call count}
409-
\lineii{"line"}{line number}
410-
\lineii{"name"}{function name}
411-
\lineii{"nfl"}{name/file/line}
412-
\lineii{"stdname"}{standard name}
413-
\lineii{"time"}{internal time}
405+
\lineii{'calls'}{call count}
406+
\lineii{'cumulative'}{cumulative time}
407+
\lineii{'file'}{file name}
408+
\lineii{'module'}{file name}
409+
\lineii{'pcalls'}{primitive call count}
410+
\lineii{'line'}{line number}
411+
\lineii{'name'}{function name}
412+
\lineii{'nfl'}{name/file/line}
413+
\lineii{'stdname'}{standard name}
414+
\lineii{'time'}{internal time}
414415
\end{tableii}
415416

416417
Note that all sorts on statistics are in descending order (placing
@@ -723,8 +724,8 @@ \subsection{OldProfile Class}
723724
nor_callers = {}
724725
nc = 0
725726
for func_caller in callers.keys():
726-
nor_callers[self.func_normalize(func_caller)]=\
727-
callers[func_caller]
727+
nor_callers[self.func_normalize(func_caller)] = \
728+
callers[func_caller]
728729
nc = nc + callers[func_caller]
729730
self.stats[nor_func] = nc, nc, tt, ct, nor_callers
730731
\end{verbatim}

0 commit comments

Comments
 (0)