]> granicus.if.org Git - python/commitdiff
Mention use of profile.py to run a script (AMK).
authorGuido van Rossum <guido@python.org>
Mon, 2 Jun 1997 17:29:12 +0000 (17:29 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 2 Jun 1997 17:29:12 +0000 (17:29 +0000)
Doc/lib/libprofile.tex
Doc/libprofile.tex

index da0c294456ab3e54651833779cde81ec766acc90..7cd3c6b352208e8207df16f982a882c00f4f17e1 100644 (file)
@@ -120,6 +120,10 @@ function:
     profile.run("foo()", 'fooprof')
 \end{verbatim}
 
+\code{profile.py} can also be invoked as
+a script to profile another script.  For example:
+\code{python /usr/local/lib/python1.4/profile.py myscript.py}
+
 When you wish to review the profile, you should use the methods in the
 \code{pstats} module.  Typically you would load the statistics data as
 follows:
index da0c294456ab3e54651833779cde81ec766acc90..7cd3c6b352208e8207df16f982a882c00f4f17e1 100644 (file)
@@ -120,6 +120,10 @@ function:
     profile.run("foo()", 'fooprof')
 \end{verbatim}
 
+\code{profile.py} can also be invoked as
+a script to profile another script.  For example:
+\code{python /usr/local/lib/python1.4/profile.py myscript.py}
+
 When you wish to review the profile, you should use the methods in the
 \code{pstats} module.  Typically you would load the statistics data as
 follows: