summaryrefslogtreecommitdiffstats
path: root/Lib/cProfile.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34861: Make cumtime the default sorting key for cProfile (GH-31929)Daniël van Noord2022-03-301-1/+1
|
* bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643)Zhiming Wang2021-01-201-1/+6
|
* bpo-40492: Fix --outfile with relative path when the program changes it ↵Anthony Sottile2020-10-181-0/+5
| | | | working dir (GH-19910)
* [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)Serhiy Storchaka2019-06-051-17/+1
| | | Turn deprecation warnings added in 3.8 into TypeError.
* bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705)Serhiy Storchaka2019-05-061-0/+1
|
* bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637)Serhiy Storchaka2019-04-011-1/+16
| | | | | | | | | | | | | | | | | | | | | | Deprecated passing the following arguments as keyword arguments: - "func" in functools.partialmethod(), weakref.finalize(), profile.Profile.runcall(), cProfile.Profile.runcall(), bdb.Bdb.runcall(), trace.Trace.runfunc() and curses.wrapper(). - "function" in unittest.addModuleCleanup() and unittest.TestCase.addCleanup(). - "fn" in the submit() method of concurrent.futures.ThreadPoolExecutor and concurrent.futures.ProcessPoolExecutor. - "callback" in contextlib.ExitStack.callback(), contextlib.AsyncExitStack.callback() and contextlib.AsyncExitStack.push_async_callback(). - "c" and "typeid" in the create() method of multiprocessing.managers.Server and multiprocessing.managers.SharedMemoryServer. - "obj" in weakref.finalize(). Also allowed to pass arbitrary keyword arguments (even "self" and "func") if the above arguments are passed as positional argument.
* bpo-23420: Verify the value of '-s' when execute the CLI of cProfile (GH-9925)Stéphane Wirtel2018-10-171-1/+3
| | | | | | Verify the value for the parameter '-s' of the cProfile CLI. Patch by Robert Kuska. Co-authored-by: Robert Kuska <rkuska@gmail.com>
* Fix docstring of Profiler class (GH-8651)INADA Naoki2018-08-031-2/+2
|
* bpo-29235: Make cProfile.Profile a context manager (GH-6808)Scott Sanderson2018-06-011-0/+7
|
* bpo-21862: Add -m option to cProfile for profiling modules (#4297)Sanyam Khurana2017-11-081-12/+23
| | | | * bpo-21862: Add -m option to cProfile for profiling modules
* Fix #17197: profile/cProfile modules refactored so that code of run() and ↵Giampaolo Rodola'2013-02-251-40/+6
| | | | runctx() utility functions is not duplicated in both modules.
* modernize some modules' code by using with statement around open()Giampaolo Rodola'2013-02-121-4/+3
|
* #9428: fix running scripts from profile/cProfile with their own name and the ↵Georg Brandl2010-08-021-11/+16
| | | | right namespace. Same fix as for trace.py in #1690103.
* convert shebang lines: python -> python3Benjamin Peterson2010-03-111-1/+1
|
* Remove the just-removed "help" from __all__.Georg Brandl2009-09-041-1/+1
|
* Remove backwards compatibility stuff from profile/cProfile.Georg Brandl2009-09-041-5/+0
|
* Patch# 1258 by Christian Heimes: kill basestring.Guido van Rossum2007-10-161-1/+1
| | | | I like this because it makes the code shorter! :-)
* Kill execfile(), use exec() insteadNeal Norwitz2007-08-121-1/+6
|
* Fix for cProfile.Guido van Rossum2007-07-161-1/+1
| | | | SF patch# 1755176 by Amaury Forgeot d'Arc.
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-2/+2
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* Patch #1550800: make exec a function.Georg Brandl2006-09-061-1/+1
|
* 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!