[Python-checkins] python/dist/src/Doc/lib libprofile.tex,1.44,1.45

mondragon at users.sourceforge.net mondragon at users.sourceforge.net
Tue Mar 23 13:44:41 EST 2004


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

Modified Files:
	libprofile.tex 
Log Message:
Added command line options for profile.py - one for stats output file
and one for sort order when using stdout.  Uses optparse.


Index: libprofile.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libprofile.tex,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** libprofile.tex	22 Mar 2004 20:12:54 -0000	1.44
--- libprofile.tex	23 Mar 2004 18:44:39 -0000	1.45
***************
*** 132,135 ****
--- 132,144 ----
  \end{verbatim}
  
+ \file{profile.py} accepts two optional arguments on the command line:
+ 
+ \begin{verbatim}
+ profile.py [-o output_file] [-s sort_order]
+ \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
  \module{pstats} module.  Typically you would load the statistics data as




More information about the Python-checkins mailing list