mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Allow user code to call the addinfo() method on the profiler object.
This commit is contained in:
parent
4c2e1af890
commit
165b2cc2bd
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue