Allow user code to call the addinfo() method on the profiler object.

This commit is contained in:
Fred Drake 2001-10-29 20:48:09 +00:00
parent 4c2e1af890
commit 165b2cc2bd

View 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.