An error occurred fetching the project authors.
- 09 Oct, 2001 2 commits
-
-
Tim Peters authored
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.
-
Tim Peters authored
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).
-
- 07 Oct, 2001 5 commits
-
-
Tim Peters authored
-
Tim Peters authored
seriously wrong. This started out by just fixing the docs, but then it occurred to me that the doc confusion propagated into misleading vrbl names too, so I also renamed those to match reality. As a result, INO the time computations are much easier to understand now (within the limitations of vast quantities of 3-character names <wink>).
-
Tim Peters authored
to use assert stmts (was raising unexpected kinds of exceptions).
-
Tim Peters authored
+ The last index in the timing tuple is 4, not 5 (noted by Guido). + The poorly named trace_dispatch_i works with float return values too.
-
Tim Peters authored
hasn't worked in years, docs were wrong, and they aren't interesting anymore regardless.
-
- 05 Oct, 2001 1 commit
-
-
Tim Peters authored
derive Profile subclasses. This patch repairs that, restoring negative tuple indices. Yuck? You bet.
-
- 04 Oct, 2001 1 commit
-
-
Guido van Rossum authored
it deals correctly with some anomalous cases; according to this test suite I've fixed it right. The anomalous cases had to do with 'exception' events: these aren't generated when they would be most helpful, and the profiler has to work hard to recover the right information. The problems occur when C code (such as hasattr(), which is used as the example here) calls back into Python code and clears an exception raised by that Python code. Consider this example: def foo(): hasattr(obj, "bar") Where obj is an instance from a class like this: class C: def __getattr__(self, name): raise AttributeError The profiler sees the following sequence of events: call (foo) call (__getattr__) exception (in __getattr__) return (from foo) Previously, the profiler would assume the return event returned from __getattr__. An if statement checking for this condition and raising an exception was commented out... This version does the right thing.
-
- 03 Oct, 2001 1 commit
-
-
Fred Drake authored
-
- 27 Sep, 2001 1 commit
-
-
Fred Drake authored
This should fix a bug in how time is allocated during exception propogation (esp. in the presence of finally clauses).
-
- 09 Aug, 2001 1 commit
-
-
Guido van Rossum authored
"import MacOS", and there *is* a need for "import operator".
-
- 19 Jun, 2001 1 commit
-
-
Jack Jansen authored
-
- 08 Jun, 2001 1 commit
-
-
Fred Drake authored
Ensure that all the default timers are called as functions, not an expensive method wrapper around a variety of different functions. Agressively avoid dictionary lookups. Modify the dispatch scheme (Profile.trace_dispatch_*(), where * is not 'call', 'exception' or 'return') so that the callables dispatched to are simple functions and not bound methods -- this reduces the number of layers of Python call machinery that gets touched. Remove a couple of duplicate imports from the "if __name__ == ..." section. This closes SF patch #430948.
-
- 14 Mar, 2001 1 commit
-
-
Jeremy Hylton authored
good doc strings.) Fix silly argument handling; was using *args but really wanted 1 optional arg. XXX Should profile.doc be merged into the documentation and removed from the Lib directory?
-
- 12 Feb, 2001 1 commit
-
-
Skip Montanaro authored
-
- 15 Jan, 2001 1 commit
-
-
Tim Peters authored
-
- 10 Aug, 2000 1 commit
-
-
Peter Schneider-Kamp authored
(and yes, "Currintly" also counts <0.5 wink>)
-
- 16 Jul, 2000 1 commit
-
-
Thomas Wouters authored
comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
-
- 04 Feb, 2000 1 commit
-
-
Guido van Rossum authored
who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
-
- 03 May, 1999 2 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
- 21 Sep, 1998 3 commits
-
-
Guido van Rossum authored
This simplified some other places in the code.
-
Guido van Rossum authored
Suggested by Jim Hugunin.
-
Guido van Rossum authored
function is only used when running the calibration code, and it turns out that recent changes in the timing code caused this statement to raise an exception.
-
- 26 Mar, 1998 1 commit
-
-
Guido van Rossum authored
-
- 17 Mar, 1998 1 commit
-
-
Guido van Rossum authored
where we use GetTicks() -- its clock() is a crock, with only 1 second accuracy, I believe.
-
- 08 Oct, 1997 1 commit
-
-
Guido van Rossum authored
Open files in binary mode (Jack)
-
- 27 Nov, 1996 1 commit
-
-
Guido van Rossum authored
-
- 01 Oct, 1996 1 commit
-
-
Guido van Rossum authored
-
- 28 May, 1996 1 commit
-
-
Guido van Rossum authored
-
- 30 Sep, 1995 1 commit
-
-
Guido van Rossum authored
-
- 10 Aug, 1995 1 commit
-
-
Guido van Rossum authored
-
- 22 Jun, 1995 1 commit
-
-
Guido van Rossum authored
-
- 01 Aug, 1994 1 commit
-
-
Guido van Rossum authored
-
- 17 Dec, 1993 1 commit
-
-
Guido van Rossum authored
constructors. There is no backward compatibility. Not everything has been tested. * aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as comments)
-
- 22 Oct, 1993 1 commit
-
-
Guido van Rossum authored
* builtin.py: b/w compat for builtin -> __builtin__ name change * string.py: added atof() and atol() and corresponding exceptions * test_types.py: added test for list sort with user comparison function
-
- 25 Aug, 1993 1 commit
-
-
Sjoerd Mullender authored
profile.py: Some speed improvements (I hope). rect.py: Bug fix in union().
-
- 24 May, 1993 1 commit
-
-
Guido van Rossum authored
* Several modules: change "class C(): ..." to "class C: ...". * flp.py: support for frozen forms. * Added string.find() which is like index but returns -1 if not found
-
- 02 Sep, 1992 1 commit
-
-
Guido van Rossum authored
Added runcall(func, *args) interfaces to profile.py, bdb.py, pdb.py, wdb.py Added new module bisect.py and used it in sched.py. Mostly cosmetic changes to profile.py (changed output format).
-