From 165b2cc2bdf17b1cb4b695f2438e611313d99c1c Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 29 Oct 2001 20:48:09 +0000 Subject: Allow user code to call the addinfo() method on the profiler object. --- Lib/hotshot/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/hotshot/__init__.py b/Lib/hotshot/__init__.py index c362fea..f00e78d 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. -- cgit v0.12