[Python-checkins] CVS: python/dist/src/Lib/hotshot __init__.py,1.2,1.3
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 29 Oct 2001 12:48:11 -0800
Update of /cvsroot/python/python/dist/src/Lib/hotshot
In directory usw-pr-cvs1:/tmp/cvs-serv10096/Lib/hotshot
Modified Files:
__init__.py
Log Message:
Allow user code to call the addinfo() method on the profiler object.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/hotshot/__init__.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** __init__.py 2001/10/15 22:14:29 1.2
--- __init__.py 2001/10/29 20:48:09 1.3
***************
*** 22,25 ****
--- 22,28 ----
self._prof.stop()
+ def addinfo(self, key, value):
+ self._prof.addinfo(key, value)
+
# These methods offer the same interface as the profile.Profile class,
# but delegate most of the work to the C implementation underneath.