E&S CVS Commit: PEAK - Partial implementation of the performance timer system described at:

pje at eby-sarna.com pje at eby-sarna.com
Wed Dec 24 17:45:00 EST 2003

Module Name:	PEAK
Committed By:	pje
Date:		Wed Dec 24 22:44:15 UTC 2003

Modified Files:
	PEAK/src/peak: peak.ini
	PEAK/src/peak/running/tests: __init__.py
Added Files:
	PEAK/src/peak/running: timers.py
	PEAK/src/peak/running/tests: test_timers.py

Log Message:
Partial implementation of the performance timer system described at:


It's missing the 'addListener()' function for the timer service, so you
can only add listeners directly to individual timers.  The actual
interfaces are also a bit different than what was originally proposed.
An exhaustive test suite is included, covering all of the implemented
behavior.  This draft implementation will probably get moved to Pyrex,
at least to create a a Timer base class with fast-path execution for
frequently called methods.  The goal is to have timer invocation be so
fast that leaving timers in production code isn't an issue.

(TODO: 'addListener()' for keys/wildcards, 'timer:' URL scheme, and
Pyrex port of Timer base.)

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.104 -r1.105 PEAK/src/peak/peak.ini
cvs rdiff -r0 -r1.1 PEAK/src/peak/running/timers.py
cvs rdiff -r1.11 -r1.12 PEAK/src/peak/running/tests/__init__.py
cvs rdiff -r0 -r1.1 PEAK/src/peak/running/tests/test_timers.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

More information about the source-changes mailing list