Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c3c4f9c0
Commit
c3c4f9c0
authored
Apr 21, 2006
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow pstats.Stats creator to specify an alternate to stdout.
parent
35460018
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
74 deletions
+91
-74
Doc/lib/libprofile.tex
Doc/lib/libprofile.tex
+9
-9
Lib/pstats.py
Lib/pstats.py
+79
-65
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Doc/lib/libprofile.tex
View file @
c3c4f9c0
...
...
@@ -391,17 +391,17 @@ Analysis of the profiler data is done using this class from the
% (This \stmodindex use may be hard to change ;-( )
\stmodindex
{
pstats
}
\begin{classdesc}
{
Stats
}{
filename
\optional
{
,
\moreargs
}}
\begin{classdesc}
{
Stats
}{
filename
\optional
{
,
\moreargs
\optional
{
, stream=sys.stdout
}
}}
This class constructor creates an instance of a ``statistics object''
from a
\var
{
filename
}
(or set of filenames).
\class
{
Stats
}
objects are
manipulated by methods, in order to print useful reports.
The file selected by the above constructor must have been created by
the corresponding version of
\module
{
profile
}
or
\module
{
cProfile
}
.
To be specific, there is
\emph
{
no
}
file compatibility guaranteed with future versions of this
profiler, and there is no compatibility with files produced by other
profilers.
manipulated by methods, in order to print useful reports.
You may specify
an alternate output stream by giving the keyword argument,
\code
{
stream
}
.
The file selected by the above constructor must have been created by the
corresponding version of
\module
{
profile
}
or
\module
{
cProfile
}
. To be
specific, there is
\emph
{
no
}
file compatibility guaranteed with future
versions of this profiler, and there is no compatibility with files produced
by other
profilers.
%(such as the old system profiler).
If several files are provided, all the statistics for identical
...
...
Lib/pstats.py
View file @
c3c4f9c0
This diff is collapsed.
Click to expand it.
Misc/NEWS
View file @
c3c4f9c0
...
...
@@ -120,6 +120,9 @@ Library
-
Fix
exception
when
doing
glob
.
glob
(
'anything*/'
)
-
The
pstats
.
Stats
class
accepts
an
optional
stream
keyword
argument
to
direct
output
to
an
alternate
file
-
like
object
.
Build
-----
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment