From: Fred Drake Date: Mon, 29 Oct 2001 20:48:09 +0000 (+0000) Subject: Allow user code to call the addinfo() method on the profiler object. X-Git-Tag: v2.2.1c1~977 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=165b2cc2bdf17b1cb4b695f2438e611313d99c1c;p=python Allow user code to call the addinfo() method on the profiler object. --- diff --git a/Lib/hotshot/__init__.py b/Lib/hotshot/__init__.py index c362fea15d..f00e78d7fb 100644 --- a/Lib/hotshot/__init__.py +++ b/Lib/hotshot/__init__.py @@ -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.