mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Added global runctx function to profile to fix SF Bug #716587
This commit is contained in:
parent
706933821c
commit
1eb4bfc657
5 changed files with 46 additions and 7 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue