Mention use of profile.py to run a script (AMK).

This commit is contained in:
Guido van Rossum 1997-06-02 17:29:12 +00:00
parent f967bf63f8
commit bac80022e4
2 changed files with 8 additions and 0 deletions

View 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:

View 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: