document Stats.dump_stats(), new for Python 2.3

This commit is contained in:
Fred Drake 2003-05-14 14:29:27 +00:00
parent 9c43910a27
commit 126d366ea6
1 changed files with 8 additions and 0 deletions

View File

@ -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