summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-29 20:48:09 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-29 20:48:09 (GMT)
commit165b2cc2bdf17b1cb4b695f2438e611313d99c1c (patch)
tree9830829fe766fcf80fedf23c6a005fb5c2a44c50
parent4c2e1af8905fe26fe42c63491b171db3ba099808 (diff)
downloadcpython-165b2cc2bdf17b1cb4b695f2438e611313d99c1c.zip
cpython-165b2cc2bdf17b1cb4b695f2438e611313d99c1c.tar.gz
cpython-165b2cc2bdf17b1cb4b695f2438e611313d99c1c.tar.bz2
Allow user code to call the addinfo() method on the profiler object.
-rw-r--r--Lib/hotshot/__init__.py3
1 files changed, 3 insertions, 0 deletions
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.