Benjamin Peterson
cfb7731dd2
strip trailing ws
2011-06-27 09:18:46 -05:00
Benjamin Peterson
7e6b3aac85
update profile license ( closes #12417 )
2011-06-27 09:14:34 -05:00
Florent Xicluna
928474561c
Merged revisions 83524,84776 via svnmerge from
...
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 )
........
2010-09-13 17:36:36 +00:00
Ronald Oussoren
9545a23c7f
In a number of places code still revers
...
to "sys.platform == 'mac'" and that is
dead code because it refers to a platform
that is no longer supported (and hasn't been
supported for several releases).
Fixes issue #7908 for the trunk.
2010-05-05 19:09:31 +00:00
Matthias Klose
924eab64a3
Issue #6635 : Fix profiler printing usage message.
2009-09-13 15:09:24 +00:00
Brett Cannon
cc2f7b4994
Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning.
2008-08-03 22:38:19 +00:00
Armin Rigo
f879024487
test and fix for buggy handling of exceptions raised by C functions,
...
causing the profiler to crash on an AssertionError if the same Python
function catches multiple exceptions from C functions.
2005-09-20 18:50:13 +00:00
Martin v. Löwis
a4dac4094a
Patch #645894 : Use getrusage for computing the time consumption in
...
profile.py if available.
2005-03-03 11:39:45 +00:00
Tim Peters
b497c106d5
Whitespace normalization.
2005-01-10 16:48:37 +00:00
Johannes Gijsbers
c0b194a770
Bug #489256 : remove out of date and out of place profile.doc, and let
...
profile.help() point at the library reference instead of profile.doc.
2005-01-10 09:07:22 +00:00
Johannes Gijsbers
2abe785fee
Move code in __name__ == '__main__' block into main() function, rewrite code so
...
there's no need to subclass OptionParser.
2005-01-09 01:58:02 +00:00
Nicholas Bastin
12ac3e1f49
Using repr() generates entries that the current stats package can't
...
collate, so setting it back to the function name
2004-07-12 23:38:02 +00:00
Nicholas Bastin
2e39d80925
Fix SF Bug #989066
2004-07-12 13:44:26 +00:00
Tim Peters
4e0e1b6a54
Whitespace normalization.
2004-07-07 20:54:48 +00:00
Nicholas Bastin
c69ebe8d50
Enable the profiling of C functions (builtins and extensions)
2004-03-24 21:57:10 +00:00
Guido van Rossum
48713e8798
Add runctx to __all__.
2004-03-23 19:19:21 +00:00
Nicholas Bastin
824b1b2da8
Added command line options for profile.py - one for stats output file
...
and one for sort order when using stdout. Uses optparse.
2004-03-23 18:44:39 +00:00
Nicholas Bastin
1eb4bfc657
Added global runctx function to profile to fix SF Bug #716587
2004-03-22 20:12:56 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Guido van Rossum
38443c1513
Remove unneeded import.
2003-10-22 17:22:18 +00:00
Raymond Hettinger
97aa32b467
Replace a reduce() with sum().
2003-10-22 16:49:01 +00:00
Guido van Rossum
68468eba63
Get rid of many apply() calls.
2003-02-27 20:14:51 +00:00
Raymond Hettinger
e0d4972acc
Replaced .keys() with dictionary iterators
2002-06-02 18:55:56 +00:00
Raymond Hettinger
16e3c427f3
Replace boolean test with is None.
2002-06-01 16:07:16 +00:00
Raymond Hettinger
54f0222547
SF 563203. Replaced 'has_key()' with 'in'.
2002-06-01 14:18:47 +00:00