summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorNicholas Bastin <nick.bastin@gmail.com>2004-03-22 20:12:56 (GMT)
committerNicholas Bastin <nick.bastin@gmail.com>2004-03-22 20:12:56 (GMT)
commit1eb4bfc6579133c2d7a495141b1f754dfecf0fc6 (patch)
treeebdd1801beda401932abd45966cc052e461d74fc /Doc/lib
parent706933821c88508299a292e8bb20bf22a9f6364b (diff)
downloadcpython-1eb4bfc6579133c2d7a495141b1f754dfecf0fc6.zip
cpython-1eb4bfc6579133c2d7a495141b1f754dfecf0fc6.tar.gz
cpython-1eb4bfc6579133c2d7a495141b1f754dfecf0fc6.tar.bz2
Added global runctx function to profile to fix SF Bug #716587
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libprofile.tex8
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: