An error occurred fetching the project authors.
  1. 09 Oct, 2001 2 commits
    • Tim Peters's avatar
      Allow the profiler's calibration constant to be specified in the constructor · 659a6031
      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.
      659a6031
    • Tim Peters's avatar
      A brand new implementation of Profile.calibrate(). This measures an · cce092d0
      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).
      cce092d0
  2. 07 Oct, 2001 5 commits
  3. 05 Oct, 2001 1 commit
  4. 04 Oct, 2001 1 commit
    • Guido van Rossum's avatar
      Hopefully fix the profiler right. Add a test suite that checks that · f137f75a
      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.
      f137f75a
  5. 03 Oct, 2001 1 commit
  6. 27 Sep, 2001 1 commit
  7. 09 Aug, 2001 1 commit
  8. 19 Jun, 2001 1 commit
  9. 08 Jun, 2001 1 commit
    • Fred Drake's avatar
      Performance improvements to the profiler: · edb5ffb2
      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.
      edb5ffb2
  10. 14 Mar, 2001 1 commit
  11. 12 Feb, 2001 1 commit
  12. 15 Jan, 2001 1 commit
  13. 10 Aug, 2000 1 commit
  14. 16 Jul, 2000 1 commit
    • Thomas Wouters's avatar
      Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either · 7e474022
      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 ;)
      7e474022
  15. 04 Feb, 2000 1 commit
    • Guido van Rossum's avatar
      More trivial comment -> docstring transformations by Ka-Ping Yee, · 54f22ed3
      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.
      54f22ed3
  16. 03 May, 1999 2 commits
  17. 21 Sep, 1998 3 commits
  18. 26 Mar, 1998 1 commit
  19. 17 Mar, 1998 1 commit
  20. 08 Oct, 1997 1 commit
  21. 27 Nov, 1996 1 commit
  22. 01 Oct, 1996 1 commit
  23. 28 May, 1996 1 commit
  24. 30 Sep, 1995 1 commit
  25. 10 Aug, 1995 1 commit
  26. 22 Jun, 1995 1 commit
  27. 01 Aug, 1994 1 commit
  28. 17 Dec, 1993 1 commit
  29. 22 Oct, 1993 1 commit
    • Guido van Rossum's avatar
      * profile.py, pdb.py: added help() function · e61fa0a1
      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
      e61fa0a1
  30. 25 Aug, 1993 1 commit
  31. 24 May, 1993 1 commit
  32. 02 Sep, 1992 1 commit