diff options
author | Fred Drake <fdrake@acm.org> | 2001-10-29 20:48:09 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-10-29 20:48:09 (GMT) |
commit | 165b2cc2bdf17b1cb4b695f2438e611313d99c1c (patch) | |
tree | 9830829fe766fcf80fedf23c6a005fb5c2a44c50 /Lib/hotshot | |
parent | 4c2e1af8905fe26fe42c63491b171db3ba099808 (diff) | |
download | cpython-165b2cc2bdf17b1cb4b695f2438e611313d99c1c.zip cpython-165b2cc2bdf17b1cb4b695f2438e611313d99c1c.tar.gz cpython-165b2cc2bdf17b1cb4b695f2438e611313d99c1c.tar.bz2 |
Allow user code to call the addinfo() method on the profiler object.
Diffstat (limited to 'Lib/hotshot')
-rw-r--r-- | Lib/hotshot/__init__.py | 3 |
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. |