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
Fred Drake
ee836445d1
Added a missing period at the end of an error message.
2001-12-05 22:27:47 +00:00
Fred Drake
d10ed8b179
Minor code cleanups based on comments from Neal Norwitz.
2001-10-17 01:49:50 +00:00
Tim Peters
e13cc92e6c
Repair key stutter + auto-complete ugliness.
2001-10-09 21:01:31 +00:00
Tim Peters
659a60311d
Allow the profiler's calibration constant to be specified in the constructor
...
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.
2001-10-09 20:51:19 +00:00
Tim Peters
cce092d046
A brand new implementation of Profile.calibrate(). This measures an
...
actual run of the profiler, instead of timing a simplified simulation of
part of what the profiler does. It computes a constant about 60% higher
on my Win98SE box than the old method, and the new constant appears much
more realistic. Deleted the undocumented simple(), instrumented(), and
profiler_simulation() methods (which existed only to support the previous
calibration method).
2001-10-09 05:31:56 +00:00