From: Guido van Rossum Date: Mon, 2 Jun 1997 17:29:12 +0000 (+0000) Subject: Mention use of profile.py to run a script (AMK). X-Git-Tag: v1.5a3~397 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bac80022e461247de1294cc37168c2a600511461;p=python Mention use of profile.py to run a script (AMK). --- diff --git a/Doc/lib/libprofile.tex b/Doc/lib/libprofile.tex index da0c294456..7cd3c6b352 100644 --- a/Doc/lib/libprofile.tex +++ b/Doc/lib/libprofile.tex @@ -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: diff --git a/Doc/libprofile.tex b/Doc/libprofile.tex index da0c294456..7cd3c6b352 100644 --- a/Doc/libprofile.tex +++ b/Doc/libprofile.tex @@ -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: