functions don't have a __name__ attribute
This commit is contained in:
parent
f71c79bb85
commit
8afa8245bb
|
@ -406,7 +406,7 @@ class Profile:
|
|||
|
||||
# This method is more useful to profile a single function call.
|
||||
def runcall(self, func, *args):
|
||||
self.set_cmd(func.__name__)
|
||||
self.set_cmd(`func`)
|
||||
sys.setprofile(self.trace_dispatch)
|
||||
try:
|
||||
apply(func, args)
|
||||
|
|
Loading…
Reference in New Issue