summaryrefslogtreecommitdiffstats
path: root/Lib/cProfile.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-23420: Verify the value of '-s' when execute the CLI of cProfile ↵Stéphane Wirtel2018-10-171-2/+3
| | | | | | | | | | | | | | | (GH-9925) (GH-9928) Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert Kuska. Co-authored-by: Robert Kuska <rkuska@gmail.com> (cherry picked from commit fcd5e84a515e19409840c570730f0728e9fcfc83) https://bugs.python.org/issue23420
* Fix docstring of Profiler class (GH-8651)Miss Islington (bot)2018-08-031-2/+2
| | | | | (cherry picked from commit 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* Merged revisions 83524,84776 via svnmerge fromFlorent Xicluna2010-09-131-6/+15
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83524 | georg.brandl | 2010-08-02 14:20:23 +0200 (lun., 02 août 2010) | 1 line #9428: fix running scripts from profile/cProfile with their own name and the right namespace. Same fix as for trace.py in #1690103. ........ r84776 | florent.xicluna | 2010-09-13 18:35:02 +0200 (lun., 13 sept. 2010) | 1 line Make test.regrtest.__file__ absolute, this was not always the case when running profile or trace, for example. (issue #9323) ........
* Added the cProfile module.Armin Rigo2006-02-081-0/+190
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!