[Python-checkins] python/dist/src/Lib profile.py,1.57,1.58

mondragon at users.sourceforge.net mondragon at users.sourceforge.net
Tue Jul 13 01:38:04 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13563/Lib

Modified Files:
	profile.py 
Log Message:
Using repr() generates entries that the current stats package can't
collate, so setting it back to the function name


Index: profile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/profile.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** profile.py	12 Jul 2004 13:44:26 -0000	1.57
--- profile.py	12 Jul 2004 23:38:01 -0000	1.58
***************
*** 217,221 ****
  
          if event == "c_call":
!             self.c_func_name = repr(arg)
  
          if self.dispatch[event](self, frame,t):
--- 217,221 ----
  
          if event == "c_call":
!             self.c_func_name = arg.__name__
  
          if self.dispatch[event](self, frame,t):
***************
*** 234,238 ****
  
          if event == "c_call":
!             self.c_func_name = repr(arg)
  
          if self.dispatch[event](self, frame, t):
--- 234,238 ----
  
          if event == "c_call":
!             self.c_func_name = arg.__name__
  
          if self.dispatch[event](self, frame, t):
***************
*** 249,253 ****
  
          if event == "c_call":
!             self.c_func_name = repr(arg)
  
          if self.dispatch[event](self, frame, t):
--- 249,253 ----
  
          if event == "c_call":
!             self.c_func_name = arg.__name__
  
          if self.dispatch[event](self, frame, t):
***************
*** 263,267 ****
  
          if event == "c_call":
!             self.c_func_name = repr(arg)
  
          if self.dispatch[event](self, frame, t):
--- 263,267 ----
  
          if event == "c_call":
!             self.c_func_name = arg.__name__
  
          if self.dispatch[event](self, frame, t):



More information about the Python-checkins mailing list