Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-103935: Use `io.open_code()` when executing code in trace and profile ↵ | Tian Gao | 2023-04-27 | 1 | -1/+2 |
| | | | | modules (GH-103947) | ||||
* | gh-65961: Do not rely solely on `__cached__` (GH-97990) | Brett Cannon | 2022-10-06 | 1 | -2/+6 |
| | | | Make sure `__spec__.cached` (at minimum) can be used. | ||||
* | bpo-42005: profile and cProfile catch BrokenPipeError (GH-22643) | Zhiming Wang | 2021-01-20 | 1 | -1/+6 |
| | |||||
* | bpo-40492: Fix --outfile with relative path when the program changes it ↵ | Anthony Sottile | 2020-10-18 | 1 | -0/+5 |
| | | | | working dir (GH-19910) | ||||
* | [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620) | Serhiy Storchaka | 2019-06-05 | 1 | -17/+1 |
| | | | Turn deprecation warnings added in 3.8 into TypeError. | ||||
* | bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705) | Serhiy Storchaka | 2019-05-06 | 1 | -0/+1 |
| | |||||
* | bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) | Serhiy Storchaka | 2019-04-01 | 1 | -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-32512: Add -m option to profile for profiling modules (#5132) | Mario Corchero | 2018-11-05 | 1 | -11/+21 |
| | | | | | | | | | The new option in the CLI of the profile module allow to profile executable modules. This change follows the same implementation as the one already present in `cProfile`. As the argument is now present on both modules, move the tests to the common test case to be run with profile as well. | ||||
* | time.clock() now emits a DeprecationWarning (GH-4020) | Victor Stinner | 2017-10-17 | 1 | -1/+1 |
| | | | | | | | | | | bpo-31803: time.clock() and time.get_clock_info('clock') now emit a DeprecationWarning warning. Replace time.clock() with time.perf_counter() in tests and demos. Remove also hasattr(time, 'monotonic') in test_time since time.monotonic() is now always available since Python 3.5. | ||||
* | bpo-30166: Import command-line parsing modules only when needed. (#1293) | Serhiy Storchaka | 2017-05-04 | 1 | -3/+4 |
| | |||||
* | Fix #17197: profile/cProfile modules refactored so that code of run() and ↵ | Giampaolo Rodola' | 2013-02-25 | 1 | -19/+37 |
| | | | | runctx() utility functions is not duplicated in both modules. | ||||
* | modernize some modules' code by using with statement around open() | Giampaolo Rodola' | 2013-02-12 | 1 | -4/+3 |
| | |||||
* | Issue #14428: Use the new time.perf_counter() and time.process_time() functions | Victor Stinner | 2012-04-29 | 1 | -34/+2 |
| | | | | | | | | | | | | * Replace "time.clock on windows, or time.time" with time.perf_counter() * profile module: only use time.process_time() instead of trying different functions providing the process time * timeit module: use time.perf_counter() by default, time.time() and time.clock() can still be used using --time and --clock options * pybench program: use time.perf_counter() by default, add support for the new time.process_time() and time.perf_counter() functions, but stay backward compatible. Use also time.get_clock_info() to display information of the timer. | ||||
* | strip trailing ws | Benjamin Peterson | 2011-06-27 | 1 | -3/+3 |
| | |||||
* | update profile license (closes #12417) | Benjamin Peterson | 2011-06-27 | 1 | -24/+15 |
| | |||||
* | #9428: fix running scripts from profile/cProfile with their own name and the ↵ | Georg Brandl | 2010-08-02 | 1 | -10/+18 |
| | | | | right namespace. Same fix as for trace.py in #1690103. | ||||
* | Remove traces of MacOS9 support. | Ronald Oussoren | 2010-05-05 | 1 | -9/+0 |
| | | | | Fix for issue #7908 | ||||
* | Issue #4282: Fix the main function of the profile module for a non-ASCII | Victor Stinner | 2010-03-22 | 1 | -4/+1 |
| | | | | | script, open the file in binary mode and not in text mode with the default (utf8) encoding. | ||||
* | convert shebang lines: python -> python3 | Benjamin Peterson | 2010-03-11 | 1 | -1/+1 |
| | |||||
* | Merged revisions 74773 via svnmerge from | Matthias Klose | 2009-09-13 | 1 | -2/+2 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74773 | matthias.klose | 2009-09-13 17:09:24 +0200 (So, 13 Sep 2009) | 2 lines Issue #6635: Fix profiler printing usage message. ........ | ||||
* | Remove the just-removed "help" from __all__. | Georg Brandl | 2009-09-04 | 1 | -1/+1 |
| | |||||
* | Remove backwards compatibility stuff from profile/cProfile. | Georg Brandl | 2009-09-04 | 1 | -7/+0 |
| | |||||
* | Kill execfile(), use exec() instead | Neal Norwitz | 2007-08-12 | 1 | -1/+6 |
| | |||||
* | - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone; | Guido van Rossum | 2007-02-11 | 1 | -2/+2 |
| | | | | | | | | | | and .keys(), .items(), .values() return dict views. The dict views aren't fully functional yet; in particular, they can't be compared to sets yet. but they are useful as "iterator wells". There are still 27 failing unit tests; I expect that many of these have fairly trivial fixes, but there are so many, I could use help. | ||||
* | Fix most trivially-findable print statements. | Guido van Rossum | 2007-02-09 | 1 | -8/+8 |
| | | | | | | | | | 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 Brandl | 2006-09-06 | 1 | -1/+1 |
| | |||||
* | Get rid of dict.has_key(). Boy this has a lot of repercussions! | Guido van Rossum | 2006-08-18 | 1 | -1/+1 |
| | | | | | | Not all code has been fixed yet; this is just a checkpoint... The C API still has PyDict_HasKey() and _HasKeyString(); not sure if I want to change those just yet. | ||||
* | test and fix for buggy handling of exceptions raised by C functions, | Armin Rigo | 2005-09-20 | 1 | -1/+1 |
| | | | | | causing the profiler to crash on an AssertionError if the same Python function catches multiple exceptions from C functions. | ||||
* | Patch #645894: Use getrusage for computing the time consumption in | Martin v. Löwis | 2005-03-03 | 1 | -2/+20 |
| | | | | profile.py if available. | ||||
* | Whitespace normalization. | Tim Peters | 2005-01-10 | 1 | -3/+3 |
| | |||||
* | Bug #489256: remove out of date and out of place profile.doc, and let | Johannes Gijsbers | 2005-01-10 | 1 | -13/+3 |
| | | | | profile.help() point at the library reference instead of profile.doc. | ||||
* | Move code in __name__ == '__main__' block into main() function, rewrite code so | Johannes Gijsbers | 2005-01-09 | 1 | -16/+14 |
| | | | | there's no need to subclass OptionParser. | ||||
* | Using repr() generates entries that the current stats package can't | Nicholas Bastin | 2004-07-12 | 1 | -4/+4 |
| | | | | collate, so setting it back to the function name | ||||
* | Fix SF Bug #989066 | Nicholas Bastin | 2004-07-12 | 1 | -4/+4 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2004-07-07 | 1 | -2/+2 |
| | |||||
* | Enable the profiling of C functions (builtins and extensions) | Nicholas Bastin | 2004-03-24 | 1 | -1/+30 |
| | |||||
* | Add runctx to __all__. | Guido van Rossum | 2004-03-23 | 1 | -1/+1 |
| | |||||
* | Added command line options for profile.py - one for stats output file | Nicholas Bastin | 2004-03-23 | 1 | -13/+27 |
| | | | | and one for sort order when using stdout. Uses optparse. | ||||
* | Added global runctx function to profile to fix SF Bug #716587 | Nicholas Bastin | 2004-03-22 | 1 | -0/+17 |
| | |||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -2/+2 |
| | | | | From SF patch #852334. | ||||
* | Remove unneeded import. | Guido van Rossum | 2003-10-22 | 1 | -1/+0 |
| | |||||
* | Replace a reduce() with sum(). | Raymond Hettinger | 2003-10-22 | 1 | -3/+2 |
| | |||||
* | Get rid of many apply() calls. | Guido van Rossum | 2003-02-27 | 1 | -1/+1 |
| | |||||
* | Replaced .keys() with dictionary iterators | Raymond Hettinger | 2002-06-02 | 1 | -4/+3 |
| | |||||
* | Replace boolean test with is None. | Raymond Hettinger | 2002-06-01 | 1 | -1/+1 |
| | |||||
* | SF 563203. Replaced 'has_key()' with 'in'. | Raymond Hettinger | 2002-06-01 | 1 | -2/+2 |
| | |||||
* | Added a missing period at the end of an error message. | Fred Drake | 2001-12-05 | 1 | -2/+2 |
| | |||||
* | Minor code cleanups based on comments from Neal Norwitz. | Fred Drake | 2001-10-17 | 1 | -3/+2 |
| | |||||
* | Repair key stutter + auto-complete ugliness. | Tim Peters | 2001-10-09 | 1 | -2/+2 |
| | |||||
* | Allow the profiler's calibration constant to be specified in the constructor | Tim Peters | 2001-10-09 | 1 | -19/+27 |
| | | | | | | | | call, or via setting an instance or class vrbl. Rewrote the calibration docs. Modern boxes are so friggin' fast, and a profiler event does so much work anyway, that the cost of looking up an instance vrbl (the bias constant) per profile event just isn't a big deal. |