1. 08 Jun, 2001 4 commits
    • Skip Montanaro's avatar
      add warning about situation where code may be executed twice, once when · 1dc98c44
      Skip Montanaro authored
      module is __main__ and once when module is imported.
      1dc98c44
    • Fred Drake's avatar
      In the section on extending the profiler, add some additional discussion · 62f9d7c0
      Fred Drake authored
      about setting up the dispatch table, and update the OldProfile and
      HotProfile classes to the current implementations, showing the adjusted
      construction for the dispatch table.
      62f9d7c0
    • Fred Drake's avatar
      call_trace(): Add an additional parameter -- pointer to a PyObject* · 904aa7bb
      Fred Drake authored
          that should be used to cache an interned version of the event
          string passed to the profile/trace function.  call_trace() will
          create interned strings and cache them in using the storage
          specified by this additional parameter, avoiding a lot of string
          object creation at runtime when using the profiling or tracing
          functions.
      
      All call sites are modified to pass the additional parameter, and four
      static PyObject* variables are allocated to cache the interned string
      objects.
      
      This closes SF patch #431257.
      904aa7bb
    • 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
  2. 07 Jun, 2001 8 commits
  3. 06 Jun, 2001 6 commits
  4. 05 Jun, 2001 5 commits
  5. 04 Jun, 2001 5 commits
  6. 03 Jun, 2001 5 commits
  7. 02 Jun, 2001 6 commits
  8. 01 Jun, 2001 1 commit