summaryrefslogtreecommitdiffstats
path: root/Modules/_lsprof.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #7494: fix a crash in _lsprof (cProfile) after clearing the profiler,Victor Stinner2010-03-041-1/+6
| | | | reset also the pointer to the current pointer context.
* Fix a refleak introduced by r66677.Brett Cannon2008-09-301-10/+1
| | | | | Fix suggested by Amaury Forgeot d'Arc. Closes issue #4003.
* The _lsprof module could crash the interpreter if it was given an externalBrett Cannon2008-09-291-1/+10
| | | | | | | | timer that did not return a float and a timer was still running when the Profiler object was garbage collected. Fixes issue 3895. Code review by Benjamin Peterson.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-6/+6
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-6/+6
|
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-3/+3
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* Patch #1733973 by peaker:Armin Rigo2007-09-061-2/+14
| | | | | ptrace_enter_call() assumes no exception is currently set. This assumption is broken when throwing into a generator.
* PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis2007-07-211-3/+3
| | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
* Initialize structseq types only once.Martin v. Löwis2006-04-161-2/+8
|
* Thanks to Coverity, these were all reported by their Prevent tool.Neal Norwitz2006-03-071-0/+2
| | | | | All of these (except _lsprof.c) should be backported. Particularly the hotshot change which validates sys.path. Can someone backport?
* Revert backwards-incompatible const changes.Martin v. Löwis2006-02-271-2/+2
|
* The default timer unit was incorrectly measured in milliseconds insteadArmin Rigo2006-02-101-3/+3
| | | | | of seconds, producing numbers 1000 times too large. It would be nice to write a test for this, but how... (thanks mwh)
* Added the cProfile module.Armin Rigo2006-02-081-0/+867
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!