mirror of
https://github.com/python/cpython.git
synced 2025-09-12 19:57:40 +00:00
runcall(): Expose the return value of the profiled function; this allows
changing an application to collect profile data on one part of the app while still making use of the profiled component, without relying on side effects.
This commit is contained in:
parent
30d1c75d15
commit
e7d8a78b8e
1 changed files with 1 additions and 1 deletions
|
@ -35,4 +35,4 @@ class Profile:
|
|||
return self
|
||||
|
||||
def runcall(self, func, *args, **kw):
|
||||
self._prof.runcall(func, args, kw)
|
||||
return self._prof.runcall(func, args, kw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue