@@ -2,8 +2,9 @@ \chapter{The Python Profiler}
22\label {profile }
33
44Copyright \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 {
89Updated and converted to \LaTeX \ by Guido van Rossum. The references to
910the old profiler are left in the text, although it no longer exists.
@@ -128,7 +129,7 @@ \section{Instant Users Manual}
128129a 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
134135When you wish to review the profile, you should use the methods in the
@@ -401,16 +402,16 @@ \subsection{The \sectcode{Stats} Class}
401402defined:
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
416417Note 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