diff options
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libprofile.tex | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/lib/libprofile.tex b/Doc/lib/libprofile.tex index 4d62094..608e1cd 100644 --- a/Doc/lib/libprofile.tex +++ b/Doc/lib/libprofile.tex @@ -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: |