summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libprofile.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-05-14 14:29:27 (GMT)
committerFred Drake <fdrake@acm.org>2003-05-14 14:29:27 (GMT)
commit126d366ea6cf798c4b87ab4e6aace164e46184e2 (patch)
tree74a750e9fe704575902b83fea971c99372f19cea /Doc/lib/libprofile.tex
parent9c43910a278ca2a44a6e2d31d53270b05cd7dc5e (diff)
downloadcpython-126d366ea6cf798c4b87ab4e6aace164e46184e2.zip
cpython-126d366ea6cf798c4b87ab4e6aace164e46184e2.tar.gz
cpython-126d366ea6cf798c4b87ab4e6aace164e46184e2.tar.bz2
document Stats.dump_stats(), new for Python 2.3
Diffstat (limited to 'Doc/lib/libprofile.tex')
-rw-r--r--Doc/lib/libprofile.tex8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/lib/libprofile.tex b/Doc/lib/libprofile.tex
index 7adb2b8..4a71082 100644
--- a/Doc/lib/libprofile.tex
+++ b/Doc/lib/libprofile.tex
@@ -392,6 +392,14 @@ version of \function{profile.run()}. Statistics for identically named
single function statistics.
\end{methoddesc}
+\begin{methoddesc}[Stats]{dump_stats}{filename}
+Save the data loaded into the \class{Stats} object to a file named
+\var{filename}. The file is created if it does not exist, and is
+overwritten if it already exists. This is equivalent to the method of
+the same name on the \class{profile.Profile} class.
+\versionadded{2.3}
+\end{methoddesc}
+
\begin{methoddesc}[Stats]{sort_stats}{key\optional{, ...}}
This method modifies the \class{Stats} object by sorting it according
to the supplied criteria. The argument is typically a string