[Python-checkins] python/dist/src/Doc/lib libprofile.tex,1.46,1.47

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Tue Mar 23 16:40:10 EST 2004


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8995

Modified Files:
	libprofile.tex 
Log Message:
more markup nits


Index: libprofile.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libprofile.tex,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** libprofile.tex	23 Mar 2004 20:30:59 -0000	1.46
--- libprofile.tex	23 Mar 2004 21:40:07 -0000	1.47
***************
*** 105,110 ****
  rapidly perform profiling on an existing application.
  
! To profile an application with a main entry point of \samp{foo()}, you
! would add the following to your module:
  
  \begin{verbatim}
--- 105,110 ----
  rapidly perform profiling on an existing application.
  
! To profile an application with a main entry point of \function{foo()},
! you would add the following to your module:
  
  \begin{verbatim}
***************
*** 113,117 ****
  \end{verbatim}
  
! The above action would cause \samp{foo()} to be run, and a series of
  informative lines (the profile) to be printed.  The above approach is
  most useful when working with the interpreter.  If you would like to
--- 113,117 ----
  \end{verbatim}
  
! The above action would cause \function{foo()} to be run, and a series of
  informative lines (the profile) to be printed.  The above approach is
  most useful when working with the interpreter.  If you would like to
***************
*** 138,143 ****
  \end{verbatim}
  
! \samp{-s} only applies to stdout (i.e. \samp{-o} is not supplied.
! Look in the \class{Stats} documentation for valid sort values.
  
  When you wish to review the profile, you should use the methods in the
--- 138,144 ----
  \end{verbatim}
  
! \programopt{-s} only applies to standard output (\programopt{-o} is
! not supplied).  Look in the \class{Stats} documentation for valid sort
! values.
  
  When you wish to review the profile, you should use the methods in the
***************
*** 152,156 ****
  The class \class{Stats} (the above code just created an instance of
  this class) has a variety of methods for manipulating and printing the
! data that was just read into \samp{p}.  When you ran
  \function{profile.run()} above, what was printed was the result of three
  method calls:
--- 153,157 ----
  The class \class{Stats} (the above code just created an instance of
  this class) has a variety of methods for manipulating and printing the
! data that was just read into \code{p}.  When you ran
  \function{profile.run()} above, what was printed was the result of three
  method calls:
***************
*** 200,205 ****
  
  This will sort all the statistics by file name, and then print out
! statistics for only the class init methods ('cause they are spelled
! with \samp{__init__} in them).  As one final example, you could try:
  
  \begin{verbatim}
--- 201,206 ----
  
  This will sort all the statistics by file name, and then print out
! statistics for only the class init methods (since they are spelled
! with \code{__init__} in them).  As one final example, you could try:
  
  \begin{verbatim}
***************
*** 214,218 ****
  
  If you wondered what functions called the above functions, you could
! now (\samp{p} is still sorted according to the last criteria) do:
  
  \begin{verbatim}
--- 215,219 ----
  
  If you wondered what functions called the above functions, you could
! now (\code{p} is still sorted according to the last criteria) do:
  
  \begin{verbatim}
***************
*** 424,428 ****
  When more than one key is provided, then additional keys are used as
  secondary criteria when there is equality in all keys selected
! before them.  For example, \samp{sort_stats('name', 'file')} will sort
  all the entries according to their function name, and resolve all ties
  (identical function names) by sorting by file name.
--- 425,429 ----
  When more than one key is provided, then additional keys are used as
  secondary criteria when there is equality in all keys selected
! before them.  For example, \code{sort_stats('name', 'file')} will sort
  all the entries according to their function name, and resolve all ties
  (identical function names) by sorting by file name.
***************
*** 496,500 ****
  
  would first limit the printing to first 10\% of list, and then only
! print functions that were part of filename \samp{.*foo:}.  In
  contrast, the command:
  
--- 497,501 ----
  
  would first limit the printing to first 10\% of list, and then only
! print functions that were part of filename \file{.*foo:}.  In
  contrast, the command:
  
***************
*** 503,507 ****
  \end{verbatim}
  
! would limit the list to all functions having file names \samp{.*foo:},
  and then proceed to only print the first 10\% of them.
  \end{methoddesc}
--- 504,508 ----
  \end{verbatim}
  
! would limit the list to all functions having file names \file{.*foo:},
  and then proceed to only print the first 10\% of them.
  \end{methoddesc}




More information about the Python-checkins mailing list