summaryrefslogtreecommitdiff
path: root/Lib/profile.py
diff options
context:
space:
mode:
authorNicholas Bastin <nick.bastin@gmail.com>2004-07-12 23:38:02 +0000
committerNicholas Bastin <nick.bastin@gmail.com>2004-07-12 23:38:02 +0000
commit12ac3e1f49f06c35a2fe9496e24d66c10e027083 (patch)
treec34ae19f67a15efcee78a9c006b088b220643d2f /Lib/profile.py
parentb1027643d57d4d861cb624ab45da21246eda1759 (diff)
downloadcpython-git-12ac3e1f49f06c35a2fe9496e24d66c10e027083.tar.gz
Using repr() generates entries that the current stats package can't
collate, so setting it back to the function name
Diffstat (limited to 'Lib/profile.py')
-rwxr-xr-xLib/profile.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index c786c6ae49..00a0ae96ea 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -216,7 +216,7 @@ class Profile:
t = t[0] + t[1] - self.t - self.bias
if event == "c_call":
- self.c_func_name = repr(arg)
+ self.c_func_name = arg.__name__
if self.dispatch[event](self, frame,t):
t = timer()
@@ -233,7 +233,7 @@ class Profile:
t = timer() - self.t - self.bias
if event == "c_call":
- self.c_func_name = repr(arg)
+ self.c_func_name = arg.__name__
if self.dispatch[event](self, frame, t):
self.t = timer()
@@ -248,7 +248,7 @@ class Profile:
t = timer()/60.0 - self.t - self.bias
if event == "c_call":
- self.c_func_name = repr(arg)
+ self.c_func_name = arg.__name__
if self.dispatch[event](self, frame, t):
self.t = timer()/60.0
@@ -262,7 +262,7 @@ class Profile:
t = get_time() - self.t - self.bias
if event == "c_call":
- self.c_func_name = repr(arg)
+ self.c_func_name = arg.__name__
if self.dispatch[event](self, frame, t):
self.t = get_time()