summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-02-26 08:21:28 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-02-26 08:21:28 (GMT)
commitca37661a69a10d70536b779e3a6ca387340b0ecd (patch)
treedef104c12455651206950d2be06a713f6963757b /Doc
parentaa0ef52ea1b48773799812d388f0efd5d29b1819 (diff)
downloadcpython-ca37661a69a10d70536b779e3a6ca387340b0ecd.zip
cpython-ca37661a69a10d70536b779e3a6ca387340b0ecd.tar.gz
cpython-ca37661a69a10d70536b779e3a6ca387340b0ecd.tar.bz2
Add a timing flag to Trace so you can see where slowness occurs
like waiting for socket timeouts in test_smtplib :-).
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/trace.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/trace.rst b/Doc/library/trace.rst
index 9d0c0c4..05d5d66 100644
--- a/Doc/library/trace.rst
+++ b/Doc/library/trace.rst
@@ -80,7 +80,7 @@ Programming Interface
---------------------
-.. class:: Trace([count=1[, trace=1[, countfuncs=0[, countcallers=0[, ignoremods=()[, ignoredirs=()[, infile=None[, outfile=None]]]]]]]])
+.. class:: Trace([count=1[, trace=1[, countfuncs=0[, countcallers=0[, ignoremods=()[, ignoredirs=()[, infile=None[, outfile=None[, timing=False]]]]]]]]])
Create an object to trace execution of a single statement or expression. All
parameters are optional. *count* enables counting of line numbers. *trace*
@@ -89,7 +89,8 @@ Programming Interface
*ignoremods* is a list of modules or packages to ignore. *ignoredirs* is a list
of directories whose modules or packages should be ignored. *infile* is the
file from which to read stored count information. *outfile* is a file in which
- to write updated count information.
+ to write updated count information. *timing* enables a timestamp relative
+ to when tracing was started to be displayed.
.. method:: Trace.run(cmd)