summaryrefslogtreecommitdiffstats
path: root/Lib/hotshot
Commit message (Collapse)AuthorAgeFilesLines
* Move testing code into "if __name__ == '__main__'" so it's not run on import.Ka-Ping Yee2003-03-281-21/+21
|
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-6/+2
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* Add clarifying comment.Guido van Rossum2002-07-181-0/+1
|
* Script to run the pystones "benchmark" under HotShot.Fred Drake2002-07-181-0/+35
|
* Simplify; the low-level log reader is now always a modern iterator,Fred Drake2002-07-181-6/+1
| | | | | and should never return None. (It only did this for an old version of HotShot that was trying to still work with a patched Python 2.1.)
* Expose the fileno() method of the underlying profiler.Fred Drake2002-07-181-0/+4
|
* Expose the fileno() method of the underlying log reader.Fred Drake2002-07-181-6/+4
| | | | | Remove the crufty support for Python's that don't have StopIteration; the HotShot patch for Python 2.1 has not been maintained.
* Gave hotshot.LogReader a close() method, to allow users to close theTim Peters2002-07-181-0/+3
| | | | | file object that LogReader opens. Used it then in test_hotshot; the test passes again on Windows. Thank Guido for the analysis.
* We're no longer trying to support older Python versions with thisGuido van Rossum2002-07-181-7/+2
| | | | codebase, so get rid of the pre-2.2 contingency.
* Minor cleanup:Fred Drake2002-05-291-5/+11
| | | | | | - Add comment explaining the structure of the stack. - Minor optimization: make stack tuple directly usable as part of return value for enter/exit events.
* Added docstrings to the Profile class.Fred Drake2002-04-161-0/+31
| | | | | Avoid adding Python wrappers around the underlying C profiler if possible; the extra layer of calls can lead to confusion in interpreting the logs.
* Set/update self.cwd properly.Fred Drake2002-03-121-14/+51
|
* Update to reflect changes to the low-level logreader: share the infoFred Drake2001-10-291-10/+19
| | | | | | dictionary instead of building a new one, and provide an overridable method to allow subclasses to catch ADD_INFO records that are not part of the initial block of ADD_INFO records created by the profiler itself.
* Allow user code to call the addinfo() method on the profiler object.Fred Drake2001-10-291-0/+3
|
* pstats-compatible analysis module.Fred Drake2001-10-151-0/+93
| | | | | hotshot.stats.load(logfilename) returns a pstats.Stats instance, which is about as compatible as it gets.
* runcall(): Expose the return value of the profiled function; this allowsFred Drake2001-10-151-1/+1
| | | | | | changing an application to collect profile data on one part of the app while still making use of the profiled component, without relying on side effects.
* Avoid deep recursion when reading the header of the log file.Fred Drake2001-10-151-28/+39
| | | | | Add support for extracting function names from the log file, keeping the extract-names-from-sources support as a fallback.
* When we reach the end of the log file, close the logreader object.Fred Drake2001-10-131-1/+3
|
* Preliminary user-level interface to HotShot. We still need the analysisFred Drake2001-10-122-0/+173
tool; look for that on Monday.