summaryrefslogtreecommitdiffstats
path: root/Doc/libprofile.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-04-10 11:34:00 (GMT)
committerGuido van Rossum <guido@python.org>1995-04-10 11:34:00 (GMT)
commit96628a90c47f15f357b31d665a4222d175e17b27 (patch)
tree74d6ef8384b587b2526d7c24adbf2f7d4e77bc93 /Doc/libprofile.tex
parenteae3f73b1c86fecfcb3d2b5599a5efd5ddf87306 (diff)
downloadcpython-96628a90c47f15f357b31d665a4222d175e17b27.zip
cpython-96628a90c47f15f357b31d665a4222d175e17b27.tar.gz
cpython-96628a90c47f15f357b31d665a4222d175e17b27.tar.bz2
typos, layout and other small things
Diffstat (limited to 'Doc/libprofile.tex')
-rw-r--r--Doc/libprofile.tex20
1 files changed, 12 insertions, 8 deletions
diff --git a/Doc/libprofile.tex b/Doc/libprofile.tex
index 3cd4296..ea2e613 100644
--- a/Doc/libprofile.tex
+++ b/Doc/libprofile.tex
@@ -267,17 +267,19 @@ function automatically prints a simple profiling report, sorted by the
standard name string (file/line/function-name) that is presented in
each line. The following is a typical output from such a call:
+\small{
\begin{verbatim}
- main()
- 2706 function calls (2004 primitive calls) in 4.504 CPU seconds
+ main()
+ 2706 function calls (2004 primitive calls) in 4.504 CPU seconds
- Ordered by: standard name
+Ordered by: standard name
- ncalls tottime percall cumtime percall filename:lineno(function)
- 2 0.006 0.003 0.953 0.477 pobject.py:75(save_objects)
- 43/3 0.533 0.012 0.749 0.250 pobject.py:99(evaluate)
- ...
+ncalls tottime percall cumtime percall filename:lineno(function)
+ 2 0.006 0.003 0.953 0.477 pobject.py:75(save_objects)
+ 43/3 0.533 0.012 0.749 0.250 pobject.py:99(evaluate)
+ ...
\end{verbatim}
+}
The first line indicates that this profile was generated by the call:\\
\code{profile.run('main()')}, and hence the exec'ed string is
@@ -318,6 +320,7 @@ then the latter is the number of primitive calls, and the former is
the actual number of calls. Note that when the function does not
recurse, these two values are the same, and only the single figure is
printed.
+
\end{funcdesc}
\begin{funcdesc}{pstats.Stats}{filename\optional{\, ...}}
@@ -480,7 +483,8 @@ return the instance that is being processed, so that the commands can
be strung together. For example:
\begin{verbatim}
-pstats.Stats('foofile').strip_dirs().sort_stats('cum').print_stats().ignore()
+pstats.Stats('foofile').strip_dirs().sort_stats('cum') \
+ .print_stats().ignore()
\end{verbatim}
would perform all the indicated functions, but it would not return