summaryrefslogtreecommitdiffstats
path: root/Lib/pstats.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 86580 via svnmerge fromSenthil Kumaran2010-11-201-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86580 | senthil.kumaran | 2010-11-21 01:02:50 +0800 (Sun, 21 Nov 2010) | 3 lines Fix issue10377 - Output from pstats - it is just secs (i.e, wallclock time) and not CPU time. ........
* Fix merging glitches.Georg Brandl2010-08-021-5/+5
|
* Merged revisions 83523 via svnmerge fromGeorg Brandl2010-08-021-26/+29
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83523 | georg.brandl | 2010-08-02 14:06:18 +0200 (Mo, 02 Aug 2010) | 1 line #9209 and #7781: fix two crashes in pstats interactive browser. ........
* Merged revisions 83531 via svnmerge fromGeorg Brandl2010-08-021-2/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83531 | georg.brandl | 2010-08-02 19:24:49 +0200 (Mo, 02 Aug 2010) | 1 line #7372: fix regression in pstats: a previous fix to handle cProfile data in add_callers broke handling of profile data. ........
* Merged revisions 83385-83389,83391 via svnmerge fromGeorg Brandl2010-08-011-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83385 | georg.brandl | 2010-08-01 08:42:45 +0200 (So, 01 Aug 2010) | 1 line #8773: mailbox.py does not need to be executable. ........ r83386 | georg.brandl | 2010-08-01 08:44:46 +0200 (So, 01 Aug 2010) | 1 line #8768: name test method properly so that it gets executed. ........ r83387 | georg.brandl | 2010-08-01 08:53:28 +0200 (So, 01 Aug 2010) | 1 line #8735: better explain semantics of *values* argument for parse(). ........ r83388 | georg.brandl | 2010-08-01 09:48:43 +0200 (So, 01 Aug 2010) | 1 line #7395: fix traceback in do_add() when no stats are loaded. Apply same fix for do_sort() and do_reverse(). ........ r83389 | georg.brandl | 2010-08-01 09:57:47 +0200 (So, 01 Aug 2010) | 1 line Small improvements to pstats browser: do not crash on reading invalid file, and actually do a reload when executing "read" as intended. ........ r83391 | georg.brandl | 2010-08-01 10:10:08 +0200 (So, 01 Aug 2010) | 1 line Add another news entry. ........
* Add tests for cmp_to_key.Raymond Hettinger2010-04-041-11/+2
| | | | | | Adopt PEP 8 compliant function name. Factor-out existing uses cmp_to_key. Update documentation to use internal pointers instead of external resource.
* #4440: modernize a use of filter(), making it compatible with 3.xAndrew M. Kuchling2010-04-021-1/+1
|
* Issue #7092: Fix the DeprecationWarnings emitted by the standard libraryAntoine Pitrou2010-01-041-2/+2
| | | | when using the -3 flag. Patch by Florent Xicluna.
* Silence -3 warnings in pstats: a dict.has_key() usage and backport solution toBrett Cannon2008-08-031-2/+12
| | | | move from list.sort(cmp=) to key=.
* #1269: fix a bug in pstats.add_callers() and add a unit test file for pstats.Georg Brandl2008-01-211-1/+2
|
* Bug #1603321: make pstats.Stats accept Unicode file paths.Georg Brandl2006-11-261-1/+1
|
* Fix errors found by pychecker.Neal Norwitz2006-06-111-3/+6
| | | | | | I think these changes are correct, but I'm not sure. Could someone who knows how this module works test it? It can at least start on the cmd line.
* Allow pstats.Stats creator to specify an alternate to stdout.Skip Montanaro2006-04-211-65/+79
|
* Added the cProfile module.Armin Rigo2006-02-081-9/+37
| | | | | | | | | | | | | | | | | | | | | | | Based on lsprof (patch #1212837) by Brett Rosen and Ted Czotter. With further editing by Michael Hudson and myself. History in svn repo: http://codespeak.net/svn/user/arigo/hack/misc/lsprof * Module/_lsprof.c is the internal C module, Lib/cProfile.py a wrapper. * pstats.py updated to display cProfile's caller/callee timings if available. * setup.py and NEWS updated. * documentation updates in the profiler section: - explain the differences between the three profilers that we have now - profile and cProfile can use a unified documentation, like (c)Pickle - mention that hotshot is "for specialized usage" now - removed references to the "old profiler" that no longer exists * test updates: - extended test_profile to cover delicate cases like recursion - added tests for the caller/callee displays - added test_cProfile, performing the same tests for cProfile * TO-DO: - cProfile gives a nicer name to built-in, particularly built-in methods, which could be backported to profile. - not tested on Windows recently!
* Removed deprecated method from pstats.Raymond Hettinger2004-12-051-4/+0
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-8/+5
| | | | From SF patch #852334.
* - add a dump_stats() method similar to that of the profile.Profile classFred Drake2003-05-141-2/+10
| | | | - don't use "file" as the name of local variables
* Get rid of many apply() calls.Guido van Rossum2003-02-271-4/+4
|
* Replaced .keys() with dictionary iteratorsRaymond Hettinger2002-06-021-28/+25
|
* Replaced obsolete stat module constants with equivalent attributesRaymond Hettinger2002-06-011-1/+1
|
* Replace boolean test with is None.Raymond Hettinger2002-06-011-1/+1
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-7/+7
|
* Put the deprecated .ignore() method back where it was.Tim Peters2001-10-081-4/+4
|
* Widespread random code cleanup.Tim Peters2001-10-081-87/+54
| | | | | | | | | | | | | | | | | | | | | | | | Most of this code was old enough to vote. Examples of cleanups: + Backslashes were used for line continuation even inside unclosed bracket structures, from back in the days that was still needed. + There was no use of % formats, and e.g. the old fpformat module was still used to format floats "by hand" in conjunction with rjust(). + There was even use of a do-nothing .ignore() method to tack on to the end of a chain of method calls, else way back when Python would print the non-None result (as it does now in an interactive session -- it *used* to do that in batch mode too). + Perhaps controversial (although I can't imagine why for real <wink>), used augmented assignment where helpful. Stuff like self.total_calls = self.total_calls + other.total_calls is just plain harder to follow than self.total_calls += other.total_calls
* Remove unused variable (PyChecker)Andrew M. Kuchling2001-08-131-1/+0
|
* Patch #445538: add completion for pstats.py sort cmd.Martin v. Löwis2001-07-301-0/+2
|
* Patch #416224: add readline completion to cmd.Cmd.Martin v. Löwis2001-07-281-0/+1
|
* Patch #416220: Fix misplaced paren.Martin v. Löwis2001-06-071-1/+1
|
* When guarding an import, only catch ImportError.Fred Drake2001-05-111-1/+1
|
* Added more help, and recovery from misspelled sort key arguments.Eric S. Raymond2001-04-261-2/+19
|
* Should resolve [ #416039 ] pstats browser crashes.Eric S. Raymond2001-04-141-3/+3
|
* Import readline when possible to make the commaninterpreter UI nicer.Eric S. Raymond2001-04-141-0/+4
|
* Whitespace normalization.Tim Peters2001-04-131-1/+0
|
* Added a test main to the pstats library that can help you browse profile dumps.Eric S. Raymond2001-04-131-0/+126
|
* __all__ for several more modulesSkip Montanaro2001-02-121-0/+2
|
* String method conversion.Eric S. Raymond2001-02-091-10/+9
|
* Whitespace normalization.Tim Peters2001-01-151-454/+453
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-6/+6
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-041-51/+45
| | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
* Fix mysterious references to jprofile that were in the source sinceGuido van Rossum1999-04-131-1/+1
| | | | | its creation. I'm assuming these were once valid references to "Jim Roskind's profile"...
* Give in to Timmy's Tedious Tab Theorem.Guido van Rossum1998-03-231-1/+1
|
* Convert all remaining *simple* cases of regex usage to re usage.Guido van Rossum1997-10-221-2/+2
|
* Open files in binary mode (Jack)Guido van Rossum1997-10-081-1/+1
|
* more robust coding, adapted for macGuido van Rossum1995-09-301-7/+4
|
* Companion module for new profile.pyGuido van Rossum1994-06-231-0/+535