]> granicus.if.org Git - python/commitdiff
Allow user code to call the addinfo() method on the profiler object.
authorFred Drake <fdrake@acm.org>
Mon, 29 Oct 2001 20:48:09 +0000 (20:48 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 29 Oct 2001 20:48:09 +0000 (20:48 +0000)
Lib/hotshot/__init__.py

index c362fea15d53ddf1ca40bf2d71ec2b8b9dc30147..f00e78d7fbe72fc44d45abc8dff4fd54ad3a179f 100644 (file)
@@ -21,6 +21,9 @@ class Profile:
     def stop(self):
         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.