Added global runctx function to profile to fix SF Bug #716587

This commit is contained in:
Nicholas Bastin 2004-03-22 20:12:56 +00:00
parent 706933821c
commit 1eb4bfc657
5 changed files with 46 additions and 7 deletions

View file

@ -275,7 +275,7 @@ Profiler Extensions, which includes discussion of how to derive
``better'' profilers from the classes presented, or reading the source
code for these modules.
\begin{funcdesc}{run}{string\optional{, filename\optional{, ...}}}
\begin{funcdesc}{run}{command\optional{, filename}}
This function takes a single argument that has can be passed to the
\keyword{exec} statement, and an optional file name. In all cases this
@ -339,6 +339,12 @@ figure is printed.
\end{funcdesc}
\begin{funcdesc}{runctx}{command, globals, locals\optional{, filename}}
This function is similar to \function{profile.run()}, with added
arguments to supply the globals and locals dictionaries for the
\var{command} string.
\end{funcdesc}
Analysis of the profiler data is done using this class from the
\module{pstats} module: