summaryrefslogtreecommitdiffstats
path: root/Lib/pstats.py
Commit message (Collapse)AuthorAgeFilesLines
* #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